The ssl module in Python is not available

在尝试安装numba库版本0.55.1时,出现因SSL模块不可用导致的HTTPS连接失败错误。解决方案是将Anaconda目录下的libcrypto-1_1-x64.*和libssl-1_1-x64.*文件复制到DLLs目录。该问题可能影响其他Python环境,类似操作也可适用于对应Python路径。
摘要由CSDN通过智能技术生成

问题描述

安装 numba 库时报错如下

E:\>pip install numba==0.55.1
WARNING: Ignoring invalid distribution -umpy
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
WARNING: Ignoring invalid distribution -umpy
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/numba/
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/numba/
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/numba/
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/numba/
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/numba/
Could not fetch URL https://pypi.org/simple/numba/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/numba/ (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 numba==0.55.1 (from versions: none)
ERROR: No matching distribution found for numba==0.55.1
WARNING: Ignoring invalid distribution -umpy

解决方法

D:\Anaconda3\Library\bin 目录下找到

  • libcrypto-1_1-x64.*
  • libssl-1_1-x64.*

拷贝到 D:\Anaconda3\DLLs

如果你用的是其他版本或是安装软件带的 Python , 到对应的 Python 目录下执行这项操作

参考
[1]. https://blog.csdn.net/niuniu41783/article/details/127821647
[2]. https://github.com/conda/conda/issues/8273

桃花仙人种桃树_又摘桃花换酒钱_ 桃花仙人种桃树_又摘桃花换酒钱_ 桃花仙人种桃树_又摘桃花换酒钱_ 桃花仙人种桃树_又摘桃花换酒钱_ 桃花仙人种桃树_又摘桃花换酒钱_ 桃花仙人种桃树_又摘桃花换酒钱_ 桃花仙人种桃树_又摘桃花换酒钱_ 桃花仙人种桃树_又摘桃花换酒钱_ 桃花仙人种桃树_又摘桃花换酒钱_ 桃花仙人种桃树_又摘桃花换酒钱_ . . . . . .

桃花仙人种桃树,又摘桃花换酒钱_

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值