【删库跑路】一次删除pip的所有第三方库

进入命令行,先list看下库存

复制代码
pip list

导出所有的第三方库至一文件列表

复制代码
pip freeze >requirements.txt

按照列表卸载所有库

复制代码
pip uninstall -r requirements.txt -y

再list看下,可见库存已清空

相关推荐
万粉变现经纪人5 小时前
如何解决 pip install 安装报错 [WinError 32] 文件被占用(杀毒/占用进程)问题
python·pycharm·flask·beautifulsoup·bug·pandas·pip
PKNLP8 小时前
11.大模型Agent应用
python·agent·pip
jiayi_19994 天前
Linux 容器安装 conda 和 pip
linux·conda·pip
Jc.MJ9 天前
安装Pytorch GPU+CPU版本【通过本地安装解决无法使用pip指令下载问题】
人工智能·pytorch·pip
想名字好难啊竟然不止我一个10 天前
清除 Pip 缓存, 释放磁盘空间
python·缓存·pip
懒惰蜗牛13 天前
Day10:Python实现Excel自动汇总
python·numpy·pandas·pip·1024程序员节·python读写excel
蓝纹绿茶14 天前
bash:**:pip:***python: 错误的解释器: 没有那个文件或目录
开发语言·python·pip
Nie_Xun18 天前
conda常用命令&pip、venv
conda·pip
万粉变现经纪人18 天前
如何解决 pip install -r requirements.txt 子目录可编辑安装缺少 pyproject.toml 问题
开发语言·python·scrapy·beautifulsoup·scikit-learn·matplotlib·pip
万粉变现经纪人18 天前
如何解决 pip install -r requirements.txt 私有索引未设为 trusted-host 导致拒绝 问题
开发语言·python·scrapy·flask·beautifulsoup·pandas·pip