我遇到了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。
无法弄清楚发生了什么。
非常感谢!
答案 0 :(得分:0)
您必须确保在同一个python环境中安装并运行hg
,hg-git
和dulwich
。是什么说which hg
和which dulwich
?
答案 1 :(得分:0)
On a Mac and no doubt in similar environments, the PYTHONPATH environment variable must also be set properly, e.g. if dulwich is in /Library/Python/2.7/site-packages/ then PYTHONPATH must include that directory.