python - 在 anaconda 提示符中使用 pip 安装软件包时出错(TLS/SSL 错误)
问题描述
我从这里安装了最新版本的 Anaconda Navigator 。
安装后,我创建了一个名为的新环境py37
,并且当我尝试做时,我从 anaconda 导航器提示符pip install pandas
中抛出以下错误:
(py37) C:\Users\kashy>pip install pandas
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
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/pandas/
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/pandas/
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/pandas/
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/pandas/
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/pandas/
Could not fetch URL https://pypi.org/simple/pandas/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pandas/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping
ERROR: Could not find a version that satisfies the requirement pandas (from versions: none)
ERROR: No matching distribution found for pandas
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
P:S .:我尝试安装的所有软件包都会发生这种情况
我知道有很多与此相关的问题,但没有一个对我有帮助
解决方案
SSL 模块不可用。尝试安装 OpenSSL。
推荐阅读
- android - TextInputLayout 删除不需要的空间
- git - 合并提交后在 git ci/cd 上触发脚本
- wpf - 升级到 Windows 10 后,拖放在 WPF 应用程序中不起作用
- string - 检索存储在 SQFlite 数据库 (Flutter) 中的数据?
- javascript - 尝试为类似 RxJS 的结构开发“拉模式”得到 RangeError
- c# - 一段时间后 HttpListener 似乎失去了连接
- excel - 我希望通过应用 vba 代码将数字转换为日期
- c# - 如何将多个 Winforms 图表图像正确保存到磁盘?
- hbase - Phoenix 中的主键在清除为 bigint 时返回 Null
- selenium - 使用 selenium webdriver 在 Web 应用程序中使用网络摄像头扫描条形码