解决PIP 安装出错ERROR: cp310-cp310-manylinux_2_28_x86_64.whl is not a supported wheel

发布于:2025-04-19 ⋅ 阅读:(16) ⋅ 点赞:(0)

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_64
  cp310-cp310-manylinux_2_26_x86_64
  cp310-cp310-manylinux_2_25_x86_64
  cp310-cp310-manylinux_2_24_x86_64
  cp310-cp310-manylinux_2_23_x86_64
  cp310-cp310-manylinux_2_22_x86_64
  cp310-cp310-manylinux_2_21_x86_64
  cp310-cp310-manylinux_2_20_x86_64
  cp310-cp310-manylinux_2_19_x86_64
  cp310-cp310-manylinux_2_18_x86_64
  cp310-cp310-manylinux_2_17_x86_64
  cp310-cp310-manylinux2014_x86_64
  cp310-cp310-manylinux_2_16_x86_64
  cp310-cp310-manylinux_2_15_x86_64
  cp310-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


.安装 GLIBC 2.28:
将Debian安全更新源添加到系统的软件源列表中:

sudo su -c 'echo "deb http://security.debian.org/debian-security buster/updates main" >> /etc/apt/sources.list' root

从指定的密钥服务器上获取并导入一个公钥:

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 112695A0E562B32A 54404762BBB6E853

更新系统软件包列表:

sudo apt update

安装名为"libc6"和"libc6-dev"的软件包:

sudo apt install libc6 libc6-dev -y

.安装成功后再次查看:

strings /lib/x86_64-linux-gnu/libc.so.6 | grep GLIBC_2.28
 


网站公告

今日签到

点亮在社区的每一天
去签到