HTTP 000 连接失败
使用 miniconda 干净安装 python 3.7.11 后,尝试安装 pandas 但失败:
(base) C:\Users\jisib>conda install pandas
Collecting package metadata (current_repodata.json): failed
CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://repo.anaconda.com/pkgs/main/win-64/current_repodata.json>
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.
'https://repo.anaconda.com/pkgs/main/win-64'
我对 python 很陌生,所以可能是一个非常基本的错误:)。 anaconda.com 未被阻止 (https://repo.anaconda.com/pkgs/main/win- 64/current_repodata.json 也不是)
先尝试创建环境但也失败了:
(base) C:\Users\jisib>conda create --name myenv2022_03
Collecting package metadata (current_repodata.json): done
Solving environment: done
CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://repo.anaconda.com/pkgs/main/win-64/current_repodata.json>
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.
'https://repo.anaconda.com/pkgs/main/win-64'
谢谢您的帮助!
After a clean install of python 3.7.11 with miniconda, tried to install pandas but failed:
(base) C:\Users\jisib>conda install pandas
Collecting package metadata (current_repodata.json): failed
CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://repo.anaconda.com/pkgs/main/win-64/current_repodata.json>
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.
'https://repo.anaconda.com/pkgs/main/win-64'
I'm quite new to python so likely a very basic error :). anaconda.com is not blocked
(https://repo.anaconda.com/pkgs/main/win-64/current_repodata.json isn't either)
Tried creating an environment first but also failed:
(base) C:\Users\jisib>conda create --name myenv2022_03
Collecting package metadata (current_repodata.json): done
Solving environment: done
CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://repo.anaconda.com/pkgs/main/win-64/current_repodata.json>
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.
'https://repo.anaconda.com/pkgs/main/win-64'
Thank you for your help!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
只需复制这些:-
来自
C:\Anaconda3\Library\bin 到 C:\Anaconda3\DLLs。
Just copy these:-
from
C:\Anaconda3\Library\bin to C:\Anaconda3\DLLs.
该错误来自新的 SSL 策略。
忽略 SSL 验证并尝试安装 pandas
或
蟒蛇提示
the error comes from new SSL policy.
To ignore SSL verification and try to install pandas
or
Anaconda Prompt
对我来说,删除 Windows 上的环境变量 SSLKEYLOGFILE 是有效的。
For me, removing the environment variable
SSLKEYLOGFILE
on Windows worked.您是否尝试过使用 pip 安装程序或使用 Anaconda Prompt 进行安装?要使用 pip 安装,请在创建虚拟环境后,打开终端控制台并尝试:
Have you tried using the pip installer, or installing using the Anaconda Prompt? To install using pip, after creating the virtual environment, open a terminal console and try that: