因为官方发布的wheel是linux版的,所以在windows环境下安装时需要编译源码。编译源码过程非常慢,耗时很长且易于出错。尝试若干次,遇到各种疑难杂症后放弃。网上找到了有大牛编译好的windows版,下载地址:github.com/bdashore3/f… 下载完成后进行本地pip install
安装过程会自动安装依赖# ninja 1.11.1.1,但是会网络超时,因此先执行安装
pip install ninja -i https://pypi.tuna.tsinghua.edu.cn/simple
ninja安装完成后再进行本地安装flash-attention-2