无法在ubuntu终端上运行hg

时间:2015-12-09 08:03:39

标签: python ubuntu mercurial pip tortoisehg

我使用sudo apt-get install mercurial安装了mercurial并正确安装。但是当我运行任何hg命令时,我得到以下错误消息 -

  

abort:在[/ home / yashu / bin中找不到mercurial库   /usr/local/lib/python3.4/dist-packages/networkx-2.0.dev_20150923032326-py3.4.egg   /usr/local/lib/python3.4/dist-packages/decorator-4.0.2-py3.4.egg   /usr/local/lib/python3.4/dist-packages/Cython-0.23.2-py3.4-linux-x86_64.egg   /usr/local/lib/python3.4/dist-packages/pgmpy-0.1.0-py3.4.egg   /usr/local/lib/python3.4/dist-packages/pip-1.2.1-py3.4.egg   /usr/lib/python3.4 /usr/lib/python3.4/plat-x86_64-linux-gnu   /usr/lib/python3.4/lib-dynload /usr/local/lib/python3.4/dist-packages   / usr / lib / python3 / dist-packages](检查你的安装和PYTHONPATH)

然后我尝试用pip安装它并再次成功安装但在运行任何hg命令时我得到相同的错误消息。

1 个答案:

答案 0 :(得分:1)

好像你安装了多个mercurial。 apt-get install可能是/usr/bin/hg的那个。尝试运行

which -a hg

$PATH中找到所有hg二进制文件。

或尝试运行/usr/bin/hg而非hg