1 2

windows使用conda时出现报错ProxyError: Conda cannot proceed due to an error in your proxy configuration

在windows命令行中使用conda时,出现报错:

ProxyError: Conda cannot proceed due to an error in your proxy configuration. Check for typos and other configuration errors in any ‘.netrc’ file in your home directory, any environment variables ending n ‘_PROXY’, and any other system-wide proxy configuration settings.

在stackoverflow中有几种(解决方法)[https://stackoverflow.com/questions/58797984/how-to-solve-an-error-that-appears-in-conda-proxy-configuration],、经过研究后发现是由于在windows中使用了VPN,系统自动使用了proxy代理导致,这里记录一下解决办法。

修改~/.condarc文件的ssl_verify和proxy_servers,如果没有的话自行添加,proxy_server具体的端口号在VPN软件中有标注,注意区分http和https

ssl_verify: false
channels:
  - defaults

proxy_servers:
  http: http://127.0.0.1:10809
  https: http://127.0.0.1:10809

posted @ 2022-07-12 20:37  啦啦啦小石头  阅读(5405)  评论(0编辑  收藏  举报