使用 easy_install 升级工具时出现问题
在 Ubuntu 服务器上:
# easy_install mercurial
Searching for mercurial
Best match: mercurial 1.8.1
Adding mercurial 1.8.1 to easy-install.pth file
Using /usr/local/lib/python2.6/dist-packages
Processing dependencies for mercurial
Finished processing dependencies for mercurial
现在,如果我执行 hg version
它表示我正在使用 1.6.3 版本!
我想使用最后一个版本。 -U 选项不起作用。 -m 选项不起作用。
知道有什么问题吗?
On Ubuntu server :
# easy_install mercurial
Searching for mercurial
Best match: mercurial 1.8.1
Adding mercurial 1.8.1 to easy-install.pth file
Using /usr/local/lib/python2.6/dist-packages
Processing dependencies for mercurial
Finished processing dependencies for mercurial
Now, if I do hg version
it says I'm using the 1.6.3 version!
I want to use the last version. the -U option don't work. The -m option don't work.
Any idea what's the problem?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我通过卸载以下软件包解决了问题:
如何我要删除使用Python的easy_install安装的软件包吗?
然后重新安装。
现在,easy_install 并没有安装我想要的最后一个版本,所以我肯定会手动安装它。
I fixed the problem by uninstalling the package following this :
How do I remove packages installed with Python's easy_install?
then reinstalling.
Now, easy_install don't install the very last version I wanted, so I'll install it manually certainly.
您可以使用 aptitude 安装 Mercurial。我不确定为什么使用 easy_install 安装 Mercurial 会为您安装 Mercurial 二进制文件。 easy_install 适用于 python 软件包。
试试这个:
现在应该显示 1.8
You can install mercurial using aptitude. I'm not sure why installing mercurial with easy_install would install the mercurial binaries for you. easy_install is for python packages.
Try this:
Should display 1.8 now
也许试试这个:
Perhaps try this: