如何卸载使用 distutils 安装的 python 包? [英] How do you uninstall a python package that was installed using distutils?
问题描述
是否可以简单地从 python 安装中删除该目录,或者是否有任何遗留文件必须删除?
Can you simply delete the directory from your python installation, or are there any lingering files that you must delete?
推荐答案
它根据您传递给 install
的选项和 distutils 配置文件在系统/包中.我不相信在这些方式指定的目录之外修改任何文件.
It varies based on the options that you pass to install
and the contents of the distutils configuration files on the system/in the package. I don't believe that any files are modified outside of directories specified in these ways.
值得注意的是,distutils 目前没有卸载命令.
同样值得注意的是,删除一个包/鸡蛋会导致依赖问题–easy_install
等实用程序试图缓解此类问题.
It's also noteworthy that deleting a package/egg can cause dependency issues – utilities like easy_install
attempt to alleviate such problems.
这篇关于如何卸载使用 distutils 安装的 python 包?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!