我和hg-git有点问题。
在我的hgrc中,我有:
[extensions]
hgext.bookmarks=
hggit=~/anaconda/lib/python3.5/site-packages/hg_gt-0.8.2-py3.5.egg/hggit
当我尝试hgclone时,我得到:
*** failed to import extension hggit from ~/anaconda/lib/python3.5/site-packages/hg_git-0.8.2-py3.5.egg/hggit: No module named dulwich.errors.
我已经通过运行easy_install 'dulwich>=0.8.0‘安装了dulwich.errors。
不知道怎么回事。
非常感谢!
发布于 2015-11-09 15:25:49
您必须确保hg
、hg-git
和dulwich
安装并运行在相同的python环境中。which hg
和which dulwich
在说什么?
发布于 2017-10-13 12:31:08
在Mac上,毫无疑问,在类似的环境中,PYTHONPATH环境变量也必须正确设置,例如,如果dulwich位于/Library/Python/2.7/site-packages/中,则PYTHONPATH必须包含该目录。
https://stackoverflow.com/questions/33591196
复制相似问题