pip 和 conda 添加和删除镜像源
最编程
2024-03-12 10:58:17
...
一、pip
1、添加源
比如添加清华源https://pypi.tuna.tsinghua.edu.cn/simple:
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
如果set多次,似乎只能保存最后一次set的镜像源。
2、删除源
pip config unset global.index-url
3、查看现在用的哪个源
pip config list
二、conda
1、添加源
比如清华源:
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/ conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/ conda config --set show_channel_urls yes
2、删除源
conda config --remove-key channels
3、查看现在用的是哪些源
conda config --show channels
也可以使用
conda config --show-sources
上一篇: [conda]配置国内镜像源
下一篇: anaconda 如何更改镜像源
推荐阅读
-
pip 和 conda 添加和删除镜像源
-
Conda 环境和更改镜像源
-
Conda 和 pip 的临时和永久源更改方法 - pip source
-
Conda 创建虚拟环境的方法和 pqi 使用国内镜像源安装第三方库的方法教程
-
conda 查看和添加镜像源 "建议收藏夹
-
pip install 和 conda install 使用国内镜像以加快下载速度 - conda install 可加快速度
-
如何将 conda 和 pip 切换到清华镜像源
-
[环境设置]用清华源替换 pip、conda 和 ubuntu 源
-
Conda 源更改和 PiP 源更改
-
conda 操作-1| conda 镜像源视图,国内镜像添加和删除