Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

faiss ERROR: Could not find a version that satisfies the requirement faiss (from versions: none)

When Running Installation:

pip install faiss

I am getting this error:

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

also when i use conda:

conda install faiss

I get this error:

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

  - faiss
like image 341
predactor Avatar asked Sep 01 '25 17:09

predactor


2 Answers

Just to state the obvious, but for pip you can use CPU- or GPU-specific builds (with appropriate CUDA major version in case of GPU):

$ pip install faiss-cpu
# or: 
$ pip install faiss-gpu-cu12 # CUDA 12.x, Python 3.8+
$ pip install faiss-gpu-cu11 # CUDA 11.x, Python 3.8+
$ pip install faiss-gpu # Python 3.6-3.10 (legacy, no longer available after version 1.7.3)
like image 98
Cristian Dumitru Avatar answered Sep 04 '25 07:09

Cristian Dumitru


Faiss on Pypi is only a collection of pre-built binaries for MacOS and Linux and only for these python versions:

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

Your setup does not seem to match these specifications

For conda, it does not exist in the std channels, but can be installed (for Linux and MacOS only) with:

conda install -c pytorch faiss-cpu

or

conda install -c pytorch faiss-gpu
like image 29
FlyingTeller Avatar answered Sep 04 '25 05:09

FlyingTeller