[root@localhost /]# pip install numba
Collecting numba
Downloading numba-0.60.0-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (3.7 MB)
|████████████████████████████████| 3.7 MB 7.1 kB/s
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): Read timed out. (read timeout=15)")': /simple/llvmlite/
Collecting llvmlite<0.44,>=0.43.0dev0
Downloading llvmlite-0.43.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (43.9 MB)
|█████▋ | 7.7 MB 5.6 kB/s eta 1:47:15ERROR: Exception:
Traceback (most recent call last):
File "/usr/lib/python3.9/site-packages/pip/_vendor/urllib3/response.py", line 438, in _error_catcher
yield
File "/usr/lib/python3.9/site-packages/pip/_vendor/urllib3/response.py", line 519, in read
下载出错,干脆到以下以下网址下载,结果显示才3兆多大的软件包,pip 命令却显示四十几兆
https://pypi.tuna.tsinghua.edu.cn/simple/numba/
到一下网址将llvmlite也下载下来安装
https://pypi.tuna.tsinghua.edu.cn/simple/llvmlite/
再加入-force 参数 就将numba安装成功
[root@localhost numba]# sudo pip install llvmlite-0.43.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl --force-reinstall
Processing ./llvmlite-0.43.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Installing collected packages: llvmlite
Attempting uninstall: llvmlite
Found existing installation: llvmlite 0.43.0
Uninstalling llvmlite-0.43.0:
Successfully uninstalled llvmlite-0.43.0
Successfully installed llvmlite-0.43.0
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv