python - 更新后使用 pip (SSL WRONG_VERSION_NUMBER) 时出错
问题描述
我正在使用 pip 直接从提示安装一些 Python 包(如 Numpy)(我使用的是 Windows 机器)。然后我将 pip 从 19.0.3 更新到 21.0.1。
现在,当我尝试使用 pip 安装软件包时,我收到以下消息:
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, '[SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1076)'))': /simple/py-trees/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, '[SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1076)'))': /simple/py-trees/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, '[SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1076)'))': /simple/py-trees/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, '[SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1076)'))': /simple/py-trees/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, '[SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1076)'))': /simple/py-trees/
Could not fetch URL https://pypi.org/simple/py-trees/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/py-trees/ (Caused by SSLError(SSLError(1, '[SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1076)'))) - skipping
ERROR: Could not find a version that satisfies the requirement py_trees
ERROR: No matching distribution found for py_trees 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(SSLError(1, '[SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1076)'))) - skipping
为什么现在会发生这种情况?有人现在如何解决它?
谢谢!
解决方案
推荐阅读
- android - 适配器中的 notifyDataSetChanged() 似乎不起作用
- android - 访问模型类中的字符串值
- openshift - Openshift:如果存在多个节点,如何访问特定节点
- security - How to use Cloud SQL Proxy with a regular user account?
- php - 仅在 PHP 中重写 URL
- python - python如何在不安装一次的情况下保留旧版本的库
- java - How to set delay for buttons color change
- bash - bash:用函数参数替换错误
- java - || 和 && (我无法理解这些逻辑运算符)
- c# - 为什么我在 LookUpEdit 中得到“System.Data.DataRowView”