愿风带走 思绪|

愿风带走思绪

园龄:2年7个月粉丝:2关注:0

anaconda换源

anaconda镜像源下载

https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/

配置anaconda的国内源

清华源
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 --add channels https://mirrors.ustc.edu.cn/anaconda/pkgs/free/
conda config --add channels Index of /anaconda/pkgs/main/

上交大源
conda config --add channels https://mirrors.sjtug.sjtu.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.sjtug.sjtu.edu.cn/anaconda/cloud/conda-forge/
conda config --add channels https://mirrors.sjtug.sjtu.edu.cn/anaconda/pkgs/main/


设置搜索时显示通道地址
conda config --set show_channel_urls yes


查看是否添加上了源
conda config --show

更换pip下载源

永久换源
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
临时换源
pip install 模块名 -i https://mirrors.aliyun.com/pypi/simple/



阿里云:http://mirrors.aliyun.com/pypi/simple/
清华:https://pypi.tuna.tsinghua.edu.cn/simple/
中科院:http://pypi.mirrors.opencas.cn/simple/
中科大:https://pypi.mirrors.ustc.edu.cn/simple/
Python官方:https://pypi.python.org/simple/
豆瓣:http://pypi.douban.com/simple/
v2ex:http://pypi.v2ex.com/simple/

推荐文章:Python库安装更新卸载+Anaconda/pip/Pycharm/Git/GitHub使用+添加删除镜像源+常见问题汇总 - 知乎 (zhihu.com)

本文作者:愿风带走思绪

本文链接:https://www.cnblogs.com/lsixu/p/18334301

版权声明:本作品采用知识共享署名-非商业性使用-禁止演绎 2.5 中国大陆许可协议进行许可。

posted @   愿风带走思绪  阅读(372)  评论(0编辑  收藏  举报
点击右上角即可分享
微信分享提示
评论
收藏
关注
推荐
深色
回顶
收起