安装xformers
通过命令 “pip3 install xformers-0.0.28.post3-cp310-cp310-manylinux_2_28_x86_64.whl” 安装whl包,出现如下报错:
ERROR: xformers-0.0.28.post3-cp310-cp310-manylinux_2_28_x86_64.whl is not a supported wheel on this platform.
报错中的 2_28,指的是需要glibc 2.28
解决办法:
运行命令查看pip3所支持的版本:
pip3 debug --verbose |grep manylinux |grep cp310
发现没有“2_28”,需要安装glibc 2.28版本,需要安装glibc 2.28,参考:https://www.cnblogs.com/dreamer-fish/p/18814002
使用命令“pip3 install xformers-0.0.28.post3-cp310-cp310-manylinux_2_28_x86_64.whl”重新安装完成后,运行如下命令,可以检查xformers是否安装成功:
python3 -m xformers.info
如果有如下warning,则说明xformers无法正常工作,需要使用命令“pip3 install xformers==0.0.28.post3”重新安装