I installed mercurial using sudo apt-get install mercurial and it installed properly. But when I run any hg command I get the following Error Message -
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)
then I tried installing it with pip and it again installed successfully but on runnning any hg command I get the same error message.
Seems like you have more than 1 mercurial installed. The one you apt-get install
will probably be /usr/bin/hg
. Try running
which -a hg
to find all your hg binaries in your $PATH
.
Or try running /usr/bin/hg
instead of just hg
.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.