在 Pycharm 中,每当我尝试创建 Conda 虚拟环境时,都会收到超时错误。以下是我创建虚拟环境的方法:
无论我尝试多少次,都会收到这样的错误消息:
错误信息如下:
Solving environment: ...working... failed
CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://repo.anaconda.com/pkgs/pro/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/pro/noarch/repodata.json.bz2 (Caused by SSLError("Can\'t connect to HTTPS URL because the SSL module is not available."))'))
如果是因为未设置路径变量,那么有人可以指导我如何设置以及设置什么吗?
答案1
PyCharm 的错误跟踪器中的以下票据涵盖了这一特殊情况:https://youtrack.jetbrains.com/issue/PY-35141
C:\ProgramData
IDE 在创建环境之前未激活基本 conda,从而导致 SSLError。