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/
安装成功亲测有效