8

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
Dan Nissenbaum
  • 13,558
  • 21
  • 105
  • 181
predactor
  • 772
  • 4
  • 11
  • 29

3 Answers3

31

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
Cristian Dumitru
  • 321
  • 1
  • 3
  • 5
14

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
Davide Fiocco
  • 5,350
  • 5
  • 35
  • 72
FlyingTeller
  • 17,638
  • 3
  • 38
  • 53
  • it is only for linux and macOs ? – predactor Nov 20 '19 at 15:02
  • 2
    Officially it cannot be compiled on windows, see the projects [on the github page](https://github.com/facebookresearch/faiss). You could try to compile some [unofficial ports](https://github.com/bitsun/faiss-windows), but there is no guarantee that they would work and might also use an outdated version of the library – FlyingTeller Nov 20 '19 at 15:29
2

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

conda install -c conda-forge faiss-cpu