python - HTTP 000 连接失败

标签 python pandas anaconda conda miniconda

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

相关文章:

python - 提高从 s3 读取 lambda 代码的性能

python - Python pandas 读取大量.csv文件并分配不同的变量名

python - 字典中的分组数据

python - 在pycharm导入人脸识别时出现ImportError : DLL load failed: The specified module could not be found.

python - 3. Party库不在conda列表中如何安装到anaconda中

python - 为什么游标没有再次创建?

python - 命令行参数基础,Python

python - 创建一个函数来标准化分类变量 (python)

python - Mac Big Sur 上安装 Anaconda Python 无法打开

python - Pandas 合并101