faiss
faiss copied to clipboard
Conda installation problem: python3.9 + glibc
I've tried the officially recommended command, but got an installation error:
$ conda install -c pytorch faiss-gpu
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: /
Found conflicts! Looking for incompatible packages. failed
UnsatisfiableError: The following specifications were found
to be incompatible with the existing python installation in your environment:
Specifications:
- faiss-gpu -> python[version='>=2.7,<2.8.0a0|>=3.6,<3.7.0a0|>=3.8,<3.9.0a0|>=3.7,<3.8.0a0|>=3.5,<3.6.0a0']
Your python: python=3.9
If python is on the left-most side of the chain, that's the version you've asked for.
When python appears to the right, that indicates that the thing on the left is somehow
not available for the python version you are constrained to. Note that conda will not
change your python version to a different minor version unless you explicitly specify
that.
The following specifications were found to be incompatible with your system:
- feature:/linux-64::__glibc==2.27=0
- faiss-gpu -> libgcc-ng[version='>=7.3.0'] -> __glibc[version='>=2.17|>=2.17,<3.0.a0']
- python=3.9 -> libgcc-ng[version='>=7.5.0'] -> __glibc[version='>=2.17']
Your installed version is: 2.27
Check the Cuda driver version and PyTorch version
I think maybe the faiss-gpu is not working on python 3.9. I got the same problem, and I changed python to 3.8 version is working now.
I am having the same issue. Is there something which breaks in python 3.9 in particular? If not, would it be possible to to support python 3.9? Thanks!
I had the same issue on python 3.9, and changing the channel from pytorch to conda-forge fix the problem for me.
conda install -c conda-forge faiss-cpu
Maybe there's some differences of the lib stored in these 2 channels.
@soumith could faiss somehow integrate pytorch foundation or at least pytorch ci haha? :)
I had the same issue on python 3.9, and changing the channel from
pytorchtoconda-forgefix the problem for me.
conda install -c conda-forge faiss-cpuMaybe there's some differences of the lib stored in these 2 channels.
i was getting a similar error when installing pytorch in python3.9 from the pytorch channel. installing from the conda-forge channel worked. thanksss