如何卸载使用 distutils 安装的 python 包? [英] How do you uninstall a python package that was installed using distutils?

查看:82
本文介绍了如何卸载使用 distutils 安装的 python 包?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以简单地从 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆