使用 easy_install 升级工具时出现问题

发布于 2024-10-25 14:09:48 字数 423 浏览 9 评论 0原文

在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

顾铮苏瑾 2024-11-01 14:09:48

我通过卸载以下软件包解决了问题:

如何我要删除使用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.

木有鱼丸 2024-11-01 14:09:48

您可以使用 aptitude 安装 Mercurial。我不确定为什么使用 easy_install 安装 Mercurial 会为您安装 Mercurial 二进制文件。 easy_install 适用于 python 软件包。

试试这个:

sudo aptitude update
sudo aptitude reinstall mercurial
hg --version

现在应该显示 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:

sudo aptitude update
sudo aptitude reinstall mercurial
hg --version

Should display 1.8 now

无敌元气妹 2024-11-01 14:09:48

也许试试这个:

sudo easy_install pip
sudo pip install -U mercurial

Perhaps try this:

sudo easy_install pip
sudo pip install -U mercurial
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文