解决PIP 安装出错ERROR: cp310-cp310-manylinux_2_28_x86_64.whl is not a supported wheel
ERROR: torch-2.8.0.dev20250325+cu128-cp310-cp310-manylinux_2_28_x86_64.whl is not a supported wheel on this platform.
可以
pip debug --verbose | grep manylinux | grep cp310
WARNING: This command is only meant for debugging. Do not use this with automation for parsing and getting these details, since the output and options of this command may change without notice.cp310-cp310-manylinux_2_27_x86_64cp310-cp310-manylinux_2_26_x86_64cp310-cp310-manylinux_2_25_x86_64cp310-cp310-manylinux_2_24_x86_64cp310-cp310-manylinux_2_23_x86_64cp310-cp310-manylinux_2_22_x86_64cp310-cp310-manylinux_2_21_x86_64cp310-cp310-manylinux_2_20_x86_64cp310-cp310-manylinux_2_19_x86_64cp310-cp310-manylinux_2_18_x86_64cp310-cp310-manylinux_2_17_x86_64cp310-cp310-manylinux2014_x86_64cp310-cp310-manylinux_2_16_x86_64cp310-cp310-manylinux_2_15_x86_64cp310-cp310-manylinux_2_14_x86_64
发现,刚好少了2_28
把whl的文件名改一下。
mv torch-2.8.0.dev20250325+cu128-cp310-cp310-manylinux_2_28_x86_64.whl torch-2.8.0.dev20250325+cu128-cp310-cp310-manylinux_2_27_x86_64.whl
然后再安装
pip torch-2.8.0.dev20250325+cu128-cp310-cp310-manylinux_2_27_x86_64.whl
可以安装了。
实际安装 2_27 , 2_28是GLIBC的版本。
# strings /lib/x86_64-linux-gnu/libc.so.6 | grep GLIBC
GLIBC_2.2.5
GLIBC_2.2.6
GLIBC_2.3
GLIBC_2.3.2
GLIBC_2.3.3
GLIBC_2.3.4
GLIBC_2.4
GLIBC_2.5
GLIBC_2.6
GLIBC_2.7
GLIBC_2.8
GLIBC_2.9
GLIBC_2.10
GLIBC_2.11
GLIBC_2.12
GLIBC_2.13
GLIBC_2.14
GLIBC_2.15
GLIBC_2.16
GLIBC_2.17
GLIBC_2.18
GLIBC_2.22
GLIBC_2.23
GLIBC_2.24
GLIBC_2.25
GLIBC_2.26
GLIBC_2.27
GLIBC_2.28
GLIBC_PRIVATE
改了安装完还是要升级GLIBC