安装faiss 报错:找不到满足要求 faiss 的版本

运行安装时:

pip install faiss

报错:

ERROR: Could not find a version that satisfies the requirement faiss (from versions: none)
ERROR: No matching distribution found for faiss

使用 conda 安装时: 

conda install faiss

报错:

PackagesNotFoundError: The following packages are not available from current channels:

  - faiss

Pypi 上的 Faiss只是 MacOS 和 Linux 的预构建二进制文件的集合,并且仅适用于这些 python 版本: 

Python :: 2.7
Python :: 3.5
Python :: 3.6
Python :: 3.7

您的设置似乎与这些规格不符

对于 conda ,它不存在于 std 通道中,但可以通过以下方式安装(仅适用于 Linux 和 MacOS):

安装CPU版本

conda install -c pytorch faiss-cpu

安装GPU版本

conda install -c pytorch faiss-gpu

 

在 Windows 上安装 faiss。 Go 到 conda 提示符并输入: 

conda install -c conda-forge faiss-cpu

猜你喜欢

转载自blog.csdn.net/weixin_43734080/article/details/127211140