Mercurial错误***无法导入扩展名hggit:没有名为hggit的模块 [英] Mercurial error *** failed to import extension hggit: No module named hggit
问题描述
我在Mac上安装了Mercurial,这很棒.对我来说,它比Git容易掌握,所以我想用它来管理git-repository.因此,我按照以下说明安装了hg-git:
I installed Mercurial on my Mac, and it's wonderful. For me it's easier to grasp than Git so I wanted to use it to manage git-repositories. Therefore I installed hg-git with the following instructions:
但是每次我发出hg命令时,它都会返回以下错误消息:
But each time I issue a hg command it returns this error message:
Mercurial error *** failed to import extension hggit: No module named hggit
可能要特别注意的是,我使用的是Mac,而不是Windows PC.
I'd might be important to note that I'm on a Mac not a Windows PC.
有没有知道如何解决这个问题
Does any know how to resolve this
推荐答案
使用以下命令安装hg-git后:
After installing hg-git with the following command:
easy_install hg-git
以下工作吗?
python -c "import hggit"
这对你说什么:
head -n1 `which hg`
后一个命令的目的是验证在以下位置运行的Python hg是否已安装hggit.就我而言,它说的是#!/usr/bin/python",这是我的标准python命令.
The point of the latter command is to verify that the Python hg runs under has hggit installed. In my case it says '#!/usr/bin/python', which is my standard python command.
这是什么意思:
/opt/local/Library/Frameworks/Python.framework/Versions/2.6/Resources/Python.app/Contents/MacOS/Python -c "import hggit"
这篇关于Mercurial错误***无法导入扩展名hggit:没有名为hggit的模块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!