conda使用清华镜像加快下载速度

pypi的国内镜像源:

阿里云 http://mirrors.aliyun.com/pypi/simple/

中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/

豆瓣(douban) http://pypi.douban.com/simple/

清华大学 https://pypi.tuna.tsinghua.edu.cn/simple/

中国科学技术大学 http://pypi.mirrors.ustc.edu.cn/simple/

conda使用清华镜像

首先打开Anaconda Prompt,切换到自己的虚拟环境。之后分别输入以下三条命令执行:
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
参考:点击

第二种方法:参考

第三种方法:参考
输入:conda info <包的名字>比如显示https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/win-64/
去这里下载好bz2的压缩文件,然后conda install --use-local <bz2文件的名字>

发布了36 篇原创文章 · 获赞 1 · 访问量 2138

猜你喜欢

转载自blog.csdn.net/jianghusanren3/article/details/104334498
今日推荐