简体   繁体   English

无法卸载easy_install安装的软件包

[英]Unable to uninstall package installed by easy_install

I installed module beaver by using the following command 我使用以下命令安装了模块beaver

easy_install Beaver

Now I need to remove this package from my server and I do the following: 现在我需要从我的服务器中删除此包,并执行以下操作:

easy_install -m Beaver

But the package is still in the system and I get the following message: 但是程序包仍在系统中,我收到以下消息:

Searching for Beaver
Best match: Beaver 30

Using /usr/local/lib/python2.7/dist-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("Beaver")  # latest installed version
    pkg_resources.require("Beaver==30")  # this exact version
    pkg_resources.require("Beaver>=30")  # this version or higher

Processing dependencies for Beaver
Finished processing dependencies for Beaver

The following command: 以下命令:

which beaver

shows me path to this module 向我展示了这个模块的路径

/usr/local/bin/beaver

Help me to remove this package from system completly 帮我从系统中完全删除这个包

Here is a good answer about it: How do I remove packages installed with Python's easy_install? 这是一个很好的答案: 如何删除使用Python的easy_install安装的软件包?

I think it is easier to install pip and uninstall this package. 我认为安装pip并卸载此软件包更容易。 Like the link above says, you can remove the package directory that can be easily found in your site-packages Python directory (but I really prefer the first option). 就像上面的链接所说,你可以删除在你的站点包Python目录中很容易找到的包目录(但我真的更喜欢第一个选项)。

pip uninstall Beaver

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM