问题描述
安装 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
桃花仙人种桃树,又摘桃花换酒钱_