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 @   啦啦啦小石头  阅读(6457)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· DeepSeek “源神”启动!「GitHub 热点速览」
· 我与微信审核的“相爱相杀”看个人小程序副业
· 上周热点回顾(2.17-2.23)
· 如何使用 Uni-app 实现视频聊天(源码,支持安卓、iOS)
· spring官宣接入deepseek,真的太香了~
点击右上角即可分享
微信分享提示