【发布时间】:2010-12-05 17:36:00
【问题描述】:
我已经安装了一个带有python setup.py install的python包。
如何卸载它?
【问题讨论】:
-
接受的答案已过时。使用
pip uninstall <your_package>。见stackoverflow.com/questions/1231688/…。 -
pip 卸载不再是一个有效的答案。这是证据。 [sri@localhost python]$ pip uninstall foo 弃用:卸载 distutils 安装的项目 (foo) 已被弃用,将在未来版本中删除。这是因为卸载 distutils 项目只会部分卸载该项目。
-
@shrewmouse 不再显示。
-
@J.C.Rocamonde 使用我创建的包,最新版本的 pip 显示
It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.所以这仍然是一个问题。 -
@Josh 在 setup.py 文件的顶部执行“从 setuptools 导入设置”而不是“从 distutils.core 导入设置”。