我刚刚通过Windows Store在Windows 10上安装了Ubuntu,并尝试将其配置为与python一起使用。在我手动下载的.sh文件上使用bash命令安装miniconda2(以使用python 2.7)后(无法使用wget:返回了SSL错误),我尝试安装一些软件包并使用conda创建虚拟环境,但我收到此消息:
conda create -n test
Solving environment: done
CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://repo.anaconda.com/pkgs/free/noarch/repodata.json.bz2>
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/free/noarch/repodata.json.bz2 (Caused by SSLError(SSLError("bad handshake: SysCallError(104, \'ECONNRESET\')",),))',),)
我尝试了网上发现的其他事情,例如升级Navigator,但也未安装。看来我也没有任何代理人。命令行:conda config --set ssl_verify no
不会改变问题。
我不知道这是从哪里来的:要么是由于我使用Ubuntu或Windows,要么是由于我的连接,我也不知道该怎么做。
其他信息:
conda info
active environment : base
active env location : /home/vpellegrain/miniconda2
shell level : 1
user config file : /home/vpellegrain/.condarc
populated config files : /home/vpellegrain/.condarc
conda version : 4.5.12
conda-build version : not installed
python version : 2.7.15.final.0
base environment : /home/vpellegrain/miniconda2 (writable)
channel URLs : https://repo.anaconda.com/pkgs/main/linux-64
https://repo.anaconda.com/pkgs/main/noarch
https://repo.anaconda.com/pkgs/free/linux-64
https://repo.anaconda.com/pkgs/free/noarch
https://repo.anaconda.com/pkgs/r/linux-64
https://repo.anaconda.com/pkgs/r/noarch
https://repo.anaconda.com/pkgs/pro/linux-64
https://repo.anaconda.com/pkgs/pro/noarch
package cache : /home/vpellegrain/miniconda2/pkgs
/home/vpellegrain/.conda/pkgs
envs directories : /home/vpellegrain/miniconda2/envs
/home/vpellegrain/.conda/envs
platform : linux-64
user-agent : conda/4.5.12 requests/2.21.0 CPython/2.7.15 Linux/4.4.0-17134-Microsoft ubuntu/18.04 glibc/2.27
UID:GID : 1000:1000
netrc file : None
offline mode : False
提前感谢您的时间和帮助!