'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


Solution 1:[1]

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

Solution 2:[2]

Just to state the obvious, but for pip you can use gpu or cpu specifc builds:

pip install faiss-cpu

or

pip install faiss-gpu

Solution 3:[3]

You can install faiss on Windows. Go to the conda prompt and type:

conda install -c conda-forge faiss-cpu

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Davide Fiocco
Solution 2 Cristian Dumitru
Solution 3 Ritwik Bandyopadhyay