微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

安装Mercurial Activity扩展的问题

我正在使用安装了Mercurial TortoiseHg的Windows XP。 现在我需要安装外部活动扩展 。 我下载了扩展名,并在hgrc中启用它。

当我尝试使用命令调用它时:

hg activity

我收到以下错误

There are 292 changesets Hg activity options: you need matplotlib in your python path in order to use the hg activity extension.

然后我安装了python 2.6和matplotlib。 所以他们的path是:

加载pdo_firebird.dll

如何加快清除静态视图更新?

Windows中生锈的符号不一致

将外部非版本化资源链接到SVN回购

CreateDIBSection:返回值与错误

d: Python26

d: Python26 LIB 站点包 matplotlib

现在我不知道如何告诉mercurial activity extension从那个位置使用matplotlib? 我在TortoiseHg常见问题中find了一些解释,标题为“TortoiseHg扩展在Windows上寻找外部python模块的位置?

但是,当我执行写在那里的步骤时,我收到了与上面相同的错误信息。

Windows CDROMpopup

在wcscpy_s之后读取string的字符时出错

C ++ CMake无法findBoost 1.63(使用CLion IDE)

用QProcess :: startDetached开始的进程仍然是一个subprocess,当父进程退出时,进程被终止

在Windows上编译Hadoop时缺less'ammintrin.h'?

我尝试了这个方法,似乎工作正常。

您将需要包含路径

import sys sys.path.append(r'C:Python26Libsite-packages')

另请参阅以下代码@ http://bitbucket.org/tortoisehg/stable/src/cf4b3dfd15ee/contrib/hg

# enable importing on demand to reduce startup time try: from mercurial import demandimport; demandimport.enable() except ImportError: sys.stderr.write("abort: Couldn't find mercurial libraries in [%s]n" % ' '.join(sys.path)) sys.stderr.write("(check your install and PYTHONPATH)n") sys.exit(-1)

您应该可以在PYTHONPATH环境变量中添加以下路径(D: Python26 Lib site-packages)。

这应该允许与TortoiseHg绑定的python查看绑定目录之外的非标准路径。

对不起,这太晚了。 我结束了安装python 2.7,并从命令行运行hg

安装python并将其添加到您的路径后,从Windows命令提示符处运行以下命令:

python -m pip install -U pip setuptools python -m pip install matplotlib python -m pip install mercurial

之后克隆hgactivity

hg clone http://sources.freehackers.org/Hgactivity/

然后将其添加到您的mercurial.ini文件中:

[extensions] activity = C:ReposHgactivityactivity

现在从命令行你应该能够做到这一点:

C:Python27Scriptshg activity --help

希望有所帮助。

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。

相关推荐