[英]Could not run hg on ubuntu terminal
I installed mercurial using sudo apt-get install mercurial and it installed properly. 我使用sudo apt-get install mercurial安装了mercurial,并且安装正确。 But when I run any hg command I get the following Error Message -
但是,当我运行任何hg命令时,都会收到以下错误消息 -
abort: couldn't find mercurial libraries in [/home/yashu/bin /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] (check your install and PYTHONPATH)
中止:在[/ home / yashu / bin /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)
then I tried installing it with pip and it again installed successfully but on runnning any hg command I get the same error message. 然后我尝试使用pip安装它,然后再次成功安装,但是在运行任何hg命令时,我都会收到相同的错误消息。
Seems like you have more than 1 mercurial installed. 似乎您已安装了1个以上的商品。 The one you
apt-get install
will probably be /usr/bin/hg
. 您
apt-get install
可能是/usr/bin/hg
。 Try running 尝试跑步
which -a hg
to find all your hg binaries in your $PATH
. 在
$PATH
找到所有hg二进制文件。
Or try running /usr/bin/hg
instead of just hg
. 或者尝试运行
/usr/bin/hg
而不是仅运行hg
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.