如何卸载setuptools?

时间:2015-12-07 14:01:26

标签: python linux

我无法卸载setuptools。怎么样?

$ sudo pip uninstall setuptools
Can't uninstall 'setuptools'. No files were found to uninstall.


$ sudo pip install setuptools
Requirement already satisfied (use --upgrade to upgrade): setuptools in /usr/local/lib/python2.7/dist-packages
Cleaning up...

如何卸载setuptools?

1 个答案:

答案 0 :(得分:1)

考虑到当前的Python版本带有 setuptools,非常确定不应删除它。

由于pip uninstall setuptools不起作用(谢天谢地),您可以尝试删除C:\Python27\Lib\site-packages\setuptools或同等的文件夹。 (在* nix系统上:/usr/lib/python2.7/dist-packages。)

免责声明:这是一个非常糟糕的主意,pip之后可能根本不起作用。