当试图创建一个新的conda环境时,出现错误,显然是一个网络连接的问题
CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://repo.anaconda.com/pkgs/main/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.
ConnectionError(MaxRetryError("HTTPSConnectionPool(host='repo.anaconda.com', port=443): Max retries exceeded with url: /pkgs/main/noarch/repodata.json.bz2 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7123924fd0>: Failed to establish a new connection: [Errno 101] Network is unreachable',))",),)
解决:
过一会儿再试又可以了.....
可能是暂时的网络故障??
The following NEW packages will be INSTALLED:
_libgcc_mutex: 0.1-main
ca-certificates: 2020.10.14-0
certifi: 2020.6.20-pyhd3eb1b0_3
ld_impl_linux-64: 2.33.1-h53a641e_7
libedit: 3.1.20191231-h14c3975_1
libffi: 3.3-he6710b0_2
libgcc-ng: 9.1.0-hdf63c60_0
libstdcxx-ng: 9.1.0-hdf63c60_0
ncurses: 6.2-he6710b0_1
openssl: 1.1.1h-h7b6447c_0
pip: 20.2.4-py36h06a4308_0
python: 3.6.12-hcff3b4d_2
readline: 8.0-h7b6447c_0
setuptools: 50.3.0-py36h06a4308_1
sqlite: 3.33.0-h62c20be_0
tk: 8.6.10-hbc83047_0
wheel: 0.35.1-py_0
xz: 5.2.5-h7b6447c_0
zlib: 1.2.11-h7b6447c_3
成功后会出现
#
# To activate this environment, use
#
# $ conda activate torchdepth
#
# To deactivate an active environment, use
#
# $ conda deactivate
还有一种可能原因是,这个环境建立之前,我先删除了一个同名环境,然后立刻建立这个新环境