pip离线安装whl时出现is not support wheel on this platform,pypi官网没有和系统标签相同的whl文件

首先使用pip debug --verbose,找出所在系统支持的whl文件(如果python是源码安装的,注意切换pip的路径)

cp38-cp38-manylinux_2_11_x86_64
cp38-cp38-manylinux_2_10_x86_64
cp38-cp38-manylinux_2_9_x86_64
cp38-cp38-manylinux_2_8_x86_64
cp38-cp38-manylinux_2_7_x86_64
cp38-cp38-manylinux_2_6_x86_64
cp38-cp38-manylinux_2_5_x86_64
cp38-cp38-manylinux1_x86_64
cp38-cp38-linux_x86_64

接着在pypi官网,找到自己想要安装python包的版本(在pypi官网可能会找不到使用pip debug --verbose输出的标签,此时,只需要下载与自己python版本对应的whl文件就行),下载后,修改包的文件名,换为所在系统支持的whl文件标签。

猜你喜欢

转载自blog.csdn.net/qq_57973134/article/details/143031176