解决办法就是在内网中配置代理~
进入
C:\Users\<username>\
中,找到.condarc文件~
需要修改的内容如下:
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: http://proxy.yourorg.org:port
https: http://proxy.yourorg.org:port
ssl_verify: False
我们设置清华镜像为上面所说的URLs,如在tencent中,proxy_server如下:
channels:
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/
- defaults
show_channel_urls: True
allow_other_channels: True
proxy_servers:
http: http://proxy.tencent.com:8080
https: http://proxy.tencent.com:8080
ssl_verify: False