1.直接用pip install + 包名

pip install faiss

在这里插入图片描述

会报错误如下:
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple/
ERROR: Could not find a version that satisfies the requirement faiss (from versions: none)
ERROR: No matching distribution found for faiss

2.正确安装方法

pip install faiss-gpu

可安装,但安装速度贼慢故按下“ctrl+z”
在这里插入图片描述

3.正确安装方法(加上镜像安装速度快)

pip install faiss-gpu -i https://pypi.tuna.tsinghua.edu.cn/simple/

安装成功亲测有效
在这里插入图片描述

Logo

技术共进,成长同行——讯飞AI开发者社区

更多推荐