HTTP 000 连接失败

发布于 2025-01-14 10:25:18 字数 1516 浏览 0 评论 0原文

使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

安人多梦 2025-01-21 10:25:18

只需复制这些:-

libcrypto-1_1-x64.dll

libssl-1_1-x64.dll

来自
C:\Anaconda3\Library\bin 到 C:\Anaconda3\DLLs。

Just copy these:-

libcrypto-1_1-x64.dll

libssl-1_1-x64.dll

from
C:\Anaconda3\Library\bin to C:\Anaconda3\DLLs.

我只土不豪 2025-01-21 10:25:18

该错误来自新的 SSL 策略。

忽略 SSL 验证并尝试安装 pandas

conda config --set ssl_verify false


蟒蛇提示

set SSL_NO_VERIFY=1

the error comes from new SSL policy.

To ignore SSL verification and try to install pandas

conda config --set ssl_verify false

or
Anaconda Prompt

set SSL_NO_VERIFY=1
独﹏钓一江月 2025-01-21 10:25:18

对我来说,删除 Windows 上的环境变量 SSLKEYLOGFILE 是有效的。

For me, removing the environment variable SSLKEYLOGFILE on Windows worked.

生生不灭 2025-01-21 10:25:18

您是否尝试过使用 pip 安装程序或使用 Anaconda Prompt 进行安装?要使用 pip 安装,请在创建虚拟环境后,打开终端控制台并尝试:

source activate [name of virtual environment]
pip install pandas

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:

source activate [name of virtual environment]
pip install pandas
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文