pythonpython-3.xpipanacondafaiss

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

  • 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