faiss icon indicating copy to clipboard operation
faiss copied to clipboard

Conda installation problem: python3.9 + glibc

Open vadimkantorov opened this issue 3 years ago • 5 comments
trafficstars

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

vadimkantorov avatar Dec 16 '21 14:12 vadimkantorov

Check the Cuda driver version and PyTorch version

Qidian213 avatar Feb 10 '22 03:02 Qidian213

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.

chgwan avatar Apr 14 '22 15:04 chgwan

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!

TheShadow29 avatar Jul 14 '22 03:07 TheShadow29

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.

lehoanganh298 avatar Oct 13 '22 09:10 lehoanganh298

@soumith could faiss somehow integrate pytorch foundation or at least pytorch ci haha? :)

vadimkantorov avatar Oct 13 '22 09:10 vadimkantorov

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.

i was getting a similar error when installing pytorch in python3.9 from the pytorch channel. installing from the conda-forge channel worked. thanksss

ynjiya avatar May 02 '23 16:05 ynjiya