报错信息如下
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 '.netrc' file in your home directory,
any environment variables ending in '_PROXY', and any other system-wide proxy
configuration settings.
解决方案如下
创建Conda 配置文件
conda config
然后在C:\Users[用户名]文件夹下找到.condar文件,修改文件内容如下:
channels:
- defaults
# Show channel URLs when displaying what is going to be downloaded and
# in 'conda list'. The default is False.
show_channel_urls: True
allow_other_channels: True
proxy_servers:
http: 127.0.0.1:PROXY_PORT
https: 127.0.0.1:PROXY_PORT
ssl_verify: False
PROXY_PORT为本地代理端口,比如我的代理服务器端口为4002,把这个改为4002即可,然后保存退出,重新打开终端创建环境即可成功!