gpt4 book ai didi

python - HTTP 000 连接失败

转载 作者:行者123 更新时间:2023-12-05 03:27:30 38 4
gpt4 key购买 nike

使用 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'

感谢您的帮助!

最佳答案

错误来自新的 SSL 政策。

忽略SSL验证并尝试安装pandas

conda config --set ssl_verify false

或者 python 提示

set SSL_NO_VERIFY=1

关于python - HTTP 000 连接失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/71466271/

38 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com