今天我在安装Anaconda虚拟环境过程中,一直报以下错误:
>conda create -n deep python=3.5 anaconda
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, and a simple retry will get you on your way.
If your current network has https://www.anaconda.com blocked, please file
a support request with your network engineering team.
SSLError(MaxRetryError('HTTPSConnectionPool(host=\'repo.anaconda.com\', port=443): Max retries exceeded with url: /pkgs/pro/win-64/repodata.json.bz2 (Caused by SSLError("Can\'t connect to HTTPS URL because the SSL module is not available."))'))
我依照google的做法:在环境变量里加入了
E:\Users\user\Anaconda3\Scripts;E:\Users\user\Anaconda3\Library\bin;E:\Users\user\Anaconda3
(其实我没参考谷歌做法之前,是只有其中一个环境变量第二个)
之后我还关闭了防火墙,fanqiang下载,但还是会出现如下图所示情况,每当出现这种情况,我会重新输入同样的命令:
conda create -n ML python=3.7 anaconda(ML为我新建的虚拟空间名称)
重新开始下载我没有下载成功的包,我发现比较大的工具包就经常出现以下错误,下载失败;最终我的网比较好了,就下载下来了,所以归根结底还是网络的原因。
这是最终安装成功的样子!
总结:
1.出现SSLError错误信息,大家关闭防火墙,并按照我的环境变量设置一下;
2.出现如第一幅图所示的错误,那就等网络好一些再下载吧!