其实这里有一个悖论
我的服务器不设置代理就没办法上网,但是Anaconda又提示这个
export https_proxy="http://ABCD:XXX"
export http_proxy="http://ABCD:XXX"
ProxyError: Conda cannot proceed due to an error in your proxy configuration.
因为之前没有出现过这个问题
解决方案
把代理内容拷贝到~/.condarc
里面即可
没有就自己新建一个这个文件
channels:
- defaults
show_channel_urls: true
default_channels:
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/r
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/msys2
custom_channels:
conda-forge: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
msys2: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
bioconda: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
menpo: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
pytorch: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
simpleitk: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
proxy_servers:
http: ABCD:XXX
https: ABCD:XXX
标签:mirrors,proceed,Anaconda3,ProxyError,edu,tsinghua,https,anaconda,cn
From: https://www.cnblogs.com/zxyfrank/p/17397979.html