Anaconda 中的 CONDAHTTPERROR 和 SSLERROR
CONDAHTTPERROR and SSLERROR in Anaconda
问题:
在安装或创建环境时,我遇到了相同类型的错误。 anaconda我已经卸载重装7-8次了,还是无法解决这个问题。
脚本:
(base) C:\Users\Ritesh>conda create --name tensorflow python=3.6
Solving environment: failed
CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://repo.anaconda.com/pkgs/msys2/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/msys2/noarch/repodata.json.bz2 (Caused by SSLError("Can\'t connect to HTTPS URL because the SSL module is not available."))'))
请以最好的方式帮助我。
谷歌搜索错误产生 this GitHub issue。
特别是,last comment 应该可以通过更新到更新版本的 Python 来帮助您解决问题,并带有针对此问题的补丁。将它复制到这里以避免 link-only 答案:
The latest builds of Python have a new patch that should help fix this issue [...].
The fixed builds of python are:
- 2.7.15 build 7
- 3.6.8 build 1
- 3.7.2 build 2
After updating to these builds, you should be able to remove any workaround that you added to make conda work. As one further workaround to get conda to install an updated python, you can download it manually from https://repo.continuum.io/pkgs/main/win-64/ and tell conda to install the file directly. For example, with python 3.7:
conda install c:\Users\you\Downloads\python-3.7.2-h8c8aaf0_2.tar.bz2
这不会为您安装依赖项,所以绝对不要尝试以这种方式切换 python 版本(即如果您已经有 3.7.x,请下载 3.7.2 包,而不是3.6.8 或 2.7.15).
问题:
在安装或创建环境时,我遇到了相同类型的错误。 anaconda我已经卸载重装7-8次了,还是无法解决这个问题。
脚本:
(base) C:\Users\Ritesh>conda create --name tensorflow python=3.6
Solving environment: failed
CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://repo.anaconda.com/pkgs/msys2/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/msys2/noarch/repodata.json.bz2 (Caused by SSLError("Can\'t connect to HTTPS URL because the SSL module is not available."))'))
请以最好的方式帮助我。
谷歌搜索错误产生 this GitHub issue。
特别是,last comment 应该可以通过更新到更新版本的 Python 来帮助您解决问题,并带有针对此问题的补丁。将它复制到这里以避免 link-only 答案:
The latest builds of Python have a new patch that should help fix this issue [...].
The fixed builds of python are:
- 2.7.15 build 7
- 3.6.8 build 1
- 3.7.2 build 2
After updating to these builds, you should be able to remove any workaround that you added to make conda work. As one further workaround to get conda to install an updated python, you can download it manually from https://repo.continuum.io/pkgs/main/win-64/ and tell conda to install the file directly. For example, with python 3.7:
conda install c:\Users\you\Downloads\python-3.7.2-h8c8aaf0_2.tar.bz2
这不会为您安装依赖项,所以绝对不要尝试以这种方式切换 python 版本(即如果您已经有 3.7.x,请下载 3.7.2 包,而不是3.6.8 或 2.7.15).