faiss icon indicating copy to clipboard operation
faiss copied to clipboard

Installation failure

Open dipyamanroy opened this issue 11 months ago • 2 comments

Summary

Installation fails on DGX A100, on every Python versions 3.9., 3.10. and 3.11.*.

Platform

OS: Ubuntu 20.04.6 LTS (Focal Fossa)

Faiss version: faiss-gpu=1.8.0

Installed from: conda install -c pytorch -c nvidia faiss-gpu=1.8.0

Faiss compilation options: NA

Running on:

  • [ ] CPU
  • [x] GPU

Interface:

  • [ ] C++
  • [x] Python

Reproduction instructions

Run conda install -c pytorch -c nvidia faiss-gpu=1.8.0.

Error log:

(rag_payload) username6@dgxcluster:~$ conda install -c pytorch -c nvidia faiss-gpu=1.8.0
Channels:
 - pytorch
 - nvidia
 - defaults
 - anaconda
Platform: linux-64
Collecting package metadata (repodata.json): done
Solving environment: | warning  libmamba Added empty dependency for problem type SOLVER_RULE_UPDATE
failed

LibMambaUnsatisfiableError: Encountered problems while solving:
  - nothing provides openssl >=1.1.1,<1.1.2.0a0 needed by python-2.7.15-h9bab390_2

Could not solve for environment specs
The following packages are incompatible
├─ faiss-cpu is installable with the potential options
│  ├─ faiss-cpu 1.8.0 would require
│  │  └─ libfaiss 1.8.0 hf65b397_0_cpu, which can be installed;
│  ├─ faiss-cpu [0.1|1.2.1|...|1.6.3] would require
│  │  └─ python >=2.7,<2.8.0a0  with the potential options
│  │     ├─ python [2.7.13|2.7.14|...|2.7.18], which can be installed;
│  │     └─ python [2.7.15|3.6.7|3.7.1] would require
│  │        └─ openssl >=1.1.1,<1.1.2.0a0 , which does not exist (perhaps a missing channel);
│  ├─ faiss-cpu [0.1|1.2.1|...|1.6.3] would require
│  │  └─ python >=3.5,<3.6.0a0 , which can be installed;
│  ├─ faiss-cpu [0.1|1.2.1|...|v1.6.4] would require
│  │  └─ python >=3.6,<3.7.0a0  with the potential options
│  │     ├─ python [2.7.15|3.6.7|3.7.1], which cannot be installed (as previously explained);
│  │     └─ python [3.6.10|3.6.12|...|3.6.9], which can be installed;
│  ├─ faiss-cpu [1.5.1|1.5.2|...|v1.6.4] would require
│  │  └─ python >=3.7,<3.8.0a0  with the potential options
│  │     ├─ python [2.7.15|3.6.7|3.7.1], which cannot be installed (as previously explained);
│  │     └─ python [3.7.0|3.7.1|...|3.7.9], which can be installed;
│  ├─ faiss-cpu [1.6.5|1.7.0|...|v1.6.4] would require
│  │  └─ python >=3.8,<3.9.0a0 , which can be installed;
│  ├─ faiss-cpu 1.7.3 would require
│  │  └─ libfaiss 1.7.3 h2bc3f7f_0_cpu, which can be installed;
│  ├─ faiss-cpu [1.7.4|1.8.0] would require
│  │  └─ python >=3.10,<3.11.0a0 , which can be installed;
│  ├─ faiss-cpu 1.7.4 would require
│  │  └─ libfaiss 1.7.4 h2bc3f7f_0_cpu, which can be installed;
│  ├─ faiss-cpu 1.8.0 would require
│  │  └─ python >=3.11,<3.12.0a0 , which can be installed;
│  └─ faiss-cpu 1.8.0 would require
│     └─ python >=3.12,<3.13.0a0 , which can be installed;
├─ faiss-gpu 1.8.0**  is installable with the potential options
│  ├─ faiss-gpu 1.8.0 would require
│  │  └─ libfaiss 1.8.0 h046e95b_0_cuda12.1.1, which conflicts with any installable versions previously reported;
│  ├─ faiss-gpu 1.8.0 would require
│  │  └─ python >=3.10,<3.11.0a0 , which can be installed;
│  ├─ faiss-gpu 1.8.0 would require
│  │  └─ python >=3.11,<3.12.0a0 , which can be installed;
│  ├─ faiss-gpu 1.8.0 would require
│  │  └─ python >=3.12,<3.13.0a0 , which can be installed;
│  └─ faiss-gpu 1.8.0 would require
│     └─ libfaiss 1.8.0 h5aaf3ed_0_cuda11.4.4, which conflicts with any installable versions previously reported;
└─ pin-1 is not installable because it requires
   └─ python 3.9.* , which conflicts with any installable versions previously reported.

dipyamanroy avatar Mar 22 '24 13:03 dipyamanroy

Hi @dipyamanroy, could you try to create a new conda env and re-install it again? I tried on my side and it works fine. Try to understand if it is just one-off problem

junjieqi avatar Mar 22 '24 18:03 junjieqi

Given that the solver is trying to resolve faiss-cpu dependencies while installing faiss-gpu, I presume faiss-cpu was installed in the env.

algoriddle avatar Mar 26 '24 08:03 algoriddle

e.g. please uninstall faiss-cpu before installing faiss-gpu.

mlomeli1 avatar May 24 '24 17:05 mlomeli1