删除conda和 pip 缓存的包

一般情况下,如我们在不同的cuda环境下不同的虚拟环境安装包时,系统会检测到之前其他cuda环境下缓存包安装,运行程序可能会报错。 那就要删掉缓存在装包。

  1. 删除 pip 缓存的包
bash 复制代码
pip cache purge

2.或者安装某个包不使用缓存

bash 复制代码
pip install mmcv==2.1.0 --no-cache-dir

3.运行以下命令清理 Conda 缓存中的未使用包和包下载缓存:

bash 复制代码
conda clean --all

3.1 仅删除下载的压缩包缓存

bash 复制代码
conda clean --tarballs

3.2 仅删除未使用的包:

bash 复制代码
conda clean --packages

3.3 仅删除索引缓存:

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