【问题标题】:faiss ERROR: Could not find a version that satisfies the requirement faiss (from versions: none)faiss 错误:找不到满足要求 faiss 的版本(来自版本:无)
【发布时间】:2019-11-20 14:51:48
【问题描述】:

运行安装时:

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

【问题讨论】:

  • 请包括你的操作系统和python版本是什么
  • window 10 pro 64

标签: python python-3.x pip anaconda faiss


【解决方案1】:

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

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

您的设置似乎不符合这些规范

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

conda install -c pytorch faiss-cpu

conda install -c pytorch faiss-gpu

【讨论】:

  • 只适用于 linux 和 macOs 吗?
  • 官方不能在windows上编译,见项目on the github page。您可以尝试编译一些 unofficial ports,但不能保证它们会起作用,并且可能还会使用过时版本的库
【解决方案2】:

您可以在 Windows 上安装 faiss。转到 conda 提示符并输入:

conda install -c conda-forge faiss-cpu

【讨论】:

    猜你喜欢
    • 2020-07-24
    • 1970-01-01
    • 2023-03-20
    • 2021-02-11
    • 2020-09-24
    • 2020-12-05
    • 1970-01-01
    • 2022-10-23
    • 1970-01-01
    相关资源
    最近更新 更多