如何删除使用Python的easy_install安装的软件包?

坚强是说给别人听的谎言 提交于 2020-05-02 06:17:17

问题:

Python's easy_install makes installing new packages extremely convenient. Python的easy_install使安装新包非常方便。 However, as far as I can tell, it doesn't implement the other common features of a dependency manager - listing and removing installed packages. 但是,据我所知,它没有实现依赖项管理器的其他常见功能 - 列出和删除已安装的软件包。

What is the best way of finding out what's installed, and what is the preferred way of removing installed packages? 找出已安装的内容的最佳方法是什么,以及删除已安装软件包的首选方法是什么? Are there any files that need to be updated if I remove packages manually (eg by rm /usr/local/lib/python2.6/dist-packages/my_installed_pkg.egg or similar)? 如果我手动删除包,是否需要更新任何文件(例如通过rm /usr/local/lib/python2.6/dist-packages/my_installed_pkg.egg或类似文件)?


解决方案:

参考一: https://stackoom.com/question/5APw/如何删除使用Python的easy-install安装的软件包
参考二: https://oldbug.net/q/5APw/How-do-I-remove-packages-installed-with-Python-s-easy-install
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!