admin管理员组

文章数量:1612099

在Ubantu中创建anaconda虚拟环境时报错:

Collecting package metadata (current_repodata.json): failed

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

 原因:在linux中使用了代理,设置一下proxy_servers:解决,具体步骤如下:

~$ gedit ~/.condarc

编辑输入:

ssl_verify: false
channels:
  - defaults

proxy_servers:
  http: http://127.0.0.1:7890
  https: http://127.0.0.1:7890

代理网址proxy_servers:为自己vpn设置的,注意http和https

查看两种方法:

1. Ubantu上在设置-网络-网络代理 里面查看

 

2.直接命令行输入搜索:出现网址

env | grep -i "_PROXY"

 注意最后创建的时候,需要打开vpn(linux里面)

本文标签: metadataPackageCollectingFailjson