创建环境时清华源报错

root@pod-dev-1372:/tf# conda create -n ly27 python=2.7
Solving environment: failed

CondaHTTPError: HTTP 000 CONNECTION FAILED for url 
Elapsed: -

An HTTP error occurred when trying to retrieve this URL.
HTTP errors are often intermittent

原因分析:

把https改成http,仍然报错

root@pod-dev-1372:~/anaconda3# conda create -n ly27 python=2.7
Solving environment: failed

CondaHTTPError: HTTP 404 NOT FOUND for url 
Elapsed: 00:00.042219

解决方案:

 如果没有vim的,先去安装vim

root@pod-dev-1372:~/anaconda3# apt-get install vim
root@pod-dev-1372:~/anaconda3# vim ~/.condarc   去修改文件内的内容

 修改内容为:

ssl_verify: true
show_channel_urls: true

channels:
  - http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/win-64/
  - http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/win-64/

最后成功创建环境

你可能感兴趣的:(服务器,linux,服务器)