Python卸载模块的方法汇总
作者:hebedich 时间:2022-03-14 16:50:21
easy_install 卸载
通过easy_install 安装的模块可以直接通过 easy_install -m PackageName 卸载,然后删除\Python27\Lib\site-packages目录下的egg。
setup.py 卸载
通过发行包附带的setup.py安装的模块,首选setup.py提供的uninstall选项。如果作者没有提供uninstall选项,则通过如下命令行手动卸载:
首先获取安装过程中产生的文件:
python setup.py install --record record.txt
然后干掉它们:
FOR /F "delims=" %f in (record.txt) DO del "%f"
之后可以去\Python27\Lib\site-packages检查有无空目录残留。
使用pip
安装pip
$ wget https://bootstrap.pypa.io/get-pip.py
$ python get-pip.py
删除指定的模块或者包
pip uninstall xxx
我觉得还是尽量用easy_install来安装,这样卸载起来比较方便。
标签:Python,卸载模块
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
Python详细介绍模型封装部署流程
2023-03-27 00:49:32
![](https://img.aspxhome.com/file/2023/6/94036_0s.png)
详细聊聊为什么Python中0.2+0.1不等于0.3
2021-08-19 12:12:35
![](https://img.aspxhome.com/file/2023/7/86497_0s.png)
Python中url标签使用知识点总结
2022-05-12 11:13:09
![](https://img.aspxhome.com/file/2023/5/79465_0s.png)
windows 2000 IIS下配置Php+Mysql+zend的图文教程(完整版)
2007-06-15 10:51:00
![](https://img.aspxhome.com/file/uploadpic/20076/15/200761515925137.gif)
详解torch.Tensor的4种乘法
2023-08-11 21:09:03
Python初学者常见错误详解
2023-09-09 10:16:46
Pandas中describe()函数的具体使用
2021-03-22 14:32:12
![](https://img.aspxhome.com/file/2023/6/99076_0s.jpg)
python中的迭代和可迭代对象代码示例
2023-02-17 21:13:24
Python爬虫进阶Scrapy框架精文讲解
2022-08-21 06:00:16
![](https://img.aspxhome.com/file/2023/3/95833_0s.jpg)
MySQL数据库安全解决方案
2009-10-17 21:36:00
Mysql入门系列:MySQL数据目录的位置
2008-11-24 12:59:00
![](https://img.aspxhome.com/file/UploadPic/200811/20081129183226513.jpg)
python模块之paramiko实例代码
2022-08-08 08:34:51
使用 Python 实现文件递归遍历的三种方式
2022-08-19 18:49:08
一篇文章彻底搞懂Python切片操作
2021-10-11 18:23:07
![](https://img.aspxhome.com/file/2023/5/101575_0s.jpg)
Python+Turtle动态绘制一棵树实例分享
2021-10-03 00:33:20
![](https://img.aspxhome.com/file/2023/6/76866_0s.gif)
Python测试框架pytest核心库pluggy详解
2023-11-01 23:02:08
Python接口测试文件上传实例解析
2023-04-19 15:59:28
![](https://img.aspxhome.com/file/2023/1/67311_0s.jpg)
python中关于日期时间处理的问答集锦
2023-08-16 08:18:48
pytorch 模型可视化的例子
2023-06-13 08:24:34
![](https://img.aspxhome.com/file/2023/0/59480_0s.jpg)
python版飞机大战代码分享
2023-11-13 22:29:03