Loading

Anaconda3 ProxyError: Conda cannot proceed due to an error in your proxy configuration.

其实这里有一个悖论

我的服务器不设置代理就没办法上网,但是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
posted @ 2023-05-13 19:10  ZXYFrank  阅读(192)  评论(0编辑  收藏  举报