无法在 Mac 上卸载 Mercurial
Can't uninstall Mercurial on Mac
因为这个, I'm trying to re-install Mercurial. I find the uninstall instructions in this question中的问题。但是,当我运行easy_install -m mercurial
时,我不知道如何进行。我是 Mac 的新手。你能告诉我下一步该怎么做吗?
sudo easy_install -m mercurial
Password:
Searching for mercurial
Best match: mercurial 3.5.2-20151001
Using /Library/Python/2.7/site-packages
Because this distribution was installed --multi-version, before you can
import modules from this package in an application, you will need to
'import pkg_resources' and then use a 'require()' call similar to one of
these examples, in order to select the desired version:
pkg_resources.require("mercurial") # latest installed version
pkg_resources.require("mercurial==3.5.2-20151001") # this exact version
pkg_resources.require("mercurial>=3.5.2-20151001") # this version or higher
Processing dependencies for mercurial
Finished processing dependencies for mercurial
问题是卸载问题的答案是错误的。 easy_install -m mercurial
不仅没有卸载 Mercurial,easy_install
甚至没有卸载命令。
要有卸载选项,需要 pip
命令。我不相信 pip
是默认 Mac Python 设置的一部分,但您可以使用 sudo easy_install pip
安装它,然后使用 sudo pip uninstall mercurial
(两者 pip
和easy_install
使用相同的包信息,所以pip
可以卸载用easy_install
)安装的包。
请注意 easy_install
可能会在 /usr/local/bin
中安装 pip
二进制文件,这 可能 与现有的 Python 安装冲突通过 Homebrew(如果您使用的是 Homebrew)。
还有更多信息here about installing pip
on OS X. The pip
commands are documented here。
因为这个easy_install -m mercurial
时,我不知道如何进行。我是 Mac 的新手。你能告诉我下一步该怎么做吗?
sudo easy_install -m mercurial
Password:
Searching for mercurial
Best match: mercurial 3.5.2-20151001
Using /Library/Python/2.7/site-packages
Because this distribution was installed --multi-version, before you can
import modules from this package in an application, you will need to
'import pkg_resources' and then use a 'require()' call similar to one of
these examples, in order to select the desired version:
pkg_resources.require("mercurial") # latest installed version
pkg_resources.require("mercurial==3.5.2-20151001") # this exact version
pkg_resources.require("mercurial>=3.5.2-20151001") # this version or higher
Processing dependencies for mercurial
Finished processing dependencies for mercurial
问题是卸载问题的答案是错误的。 easy_install -m mercurial
不仅没有卸载 Mercurial,easy_install
甚至没有卸载命令。
要有卸载选项,需要 pip
命令。我不相信 pip
是默认 Mac Python 设置的一部分,但您可以使用 sudo easy_install pip
安装它,然后使用 sudo pip uninstall mercurial
(两者 pip
和easy_install
使用相同的包信息,所以pip
可以卸载用easy_install
)安装的包。
请注意 easy_install
可能会在 /usr/local/bin
中安装 pip
二进制文件,这 可能 与现有的 Python 安装冲突通过 Homebrew(如果您使用的是 Homebrew)。
还有更多信息here about installing pip
on OS X. The pip
commands are documented here。