gpt4 book ai didi

python-3.x - 无法安装任何 python 包 pip SSLError

转载 作者:行者123 更新时间:2023-12-04 22:37:54 24 4
gpt4 key购买 nike

我最近更改了我的环境路径以安装 vpckg - 这失败了,所以我将路径更改回以前的路径,请参阅带有系统路径的附图。我不知道这是否产生了我目前遇到的问题,但我添加了系统路径以防万一。 Image1

但是现在当我尝试运行任何东西时,它告诉我必须重新安装 Numpy。当我尝试这样做时,我收到以下错误:

WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/pip/

WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/pip/

WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/pip/

WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/pip/

WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/pip/

Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping

Requirement already up-to-date: pip in c:\users\victor.ciulei\appdata\roaming\python\python37\site-packages (20.0.2)
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.

Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping

我已经尝试添加
pip install --trusted-host pypi.org --trusted-host files.pythonhosted.org numpy
但我得到了同样的错误。

在 Windows 10 上使用 Python 3.7。

最佳答案

重新安装 Miniconda 就可以了。

关于python-3.x - 无法安装任何 python 包 pip SSLError,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62447789/

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