faiss icon indicating copy to clipboard operation
faiss copied to clipboard

PackagesNotFoundError

Open austinmw opened this issue 10 months ago • 1 comments

Summary

Platform

OS: Ubuntu

Faiss version: None yet

Installed from: attempting conda

Running on:

  • [ ] CPU
  • [X] GPU

Interface:

  • [ ] C++
  • [X] Python

Reproduction instructions

conda create -n ft python=3.10
conda activate ft
# attempt to install faiss-gpu
conda install -c pytorch -c nvidia faiss-gpu=1.8.0

Error:

❯ conda install -c pytorch -c nvidia faiss-gpu=1.8.0

Collecting package metadata (current_repodata.json): done Solving environment: failed with initial frozen solve. Retrying with flexible solve. Collecting package metadata (repodata.json): done Solving environment: failed with initial frozen solve. Retrying with flexible solve.

PackagesNotFoundError: The following packages are not available from current channels:

  • faiss-gpu=1.8.0

Current channels:

  • https://conda.anaconda.org/pytorch/osx-arm64
  • https://conda.anaconda.org/pytorch/noarch
  • https://conda.anaconda.org/nvidia/osx-arm64
  • https://conda.anaconda.org/nvidia/noarch
  • https://conda.anaconda.org/conda-forge/osx-arm64
  • https://conda.anaconda.org/conda-forge/noarch

To search for alternate channels that may provide the conda package you're looking for, navigate to

https://anaconda.org

and use the search bar at the top of the page.

austinmw avatar Mar 27 '24 16:03 austinmw

Hi, I can't repro this @austinmw . I have Ubuntu 22.04.2, I tried exactly the same commands and I can install faiss-gpu successfully:

conda create -n tester_env python=3.10
...
conda activate tester_env
conda install -c pytorch -c nvidia faiss-gpu=1.8.0
Collecting package metadata (current_repodata.json): done
Solving environment: done


==> WARNING: A newer version of conda exists. <==
  current version: 4.10.1
  latest version: 24.3.0

Please update conda by running

    $ conda update -n base -c defaults conda



## Package Plan ##

  environment location: /private/home/marialomeli/.conda/envs/tester_env

  added / updated specs:
    - faiss-gpu=1.8.0


The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    faiss-gpu-1.8.0            |py3.10_h4c7d538_0_cuda12.1.1         5.0 MB  pytorch
    libfaiss-1.8.0             |h046e95b_0_cuda12.1.1       268.9 MB  pytorch
    packaging-23.2             |  py310h06a4308_0         146 KB
    ------------------------------------------------------------
                                           Total:       274.0 MB

The following NEW packages will be INSTALLED:

  blas               pkgs/main/linux-64::blas-1.0-mkl
  cuda-cudart        nvidia/linux-64::cuda-cudart-12.4.99-0
  faiss-gpu          pytorch/linux-64::faiss-gpu-1.8.0-py3.10_h4c7d538_0_cuda12.1.1
  intel-openmp       pkgs/main/linux-64::intel-openmp-2023.1.0-hdb19cb5_46306
  libcublas          nvidia/linux-64::libcublas-12.4.2.65-0
  libfaiss           pytorch/linux-64::libfaiss-1.8.0-h046e95b_0_cuda12.1.1
  mkl                pkgs/main/linux-64::mkl-2023.1.0-h213fc3f_46344
  mkl-service        pkgs/main/linux-64::mkl-service-2.4.0-py310h5eee18b_1
  mkl_fft            pkgs/main/linux-64::mkl_fft-1.3.8-py310h5eee18b_0
  mkl_random         pkgs/main/linux-64::mkl_random-1.2.4-py310hdb19cb5_0
  numpy              pkgs/main/linux-64::numpy-1.26.4-py310h5f9d8c6_0
  numpy-base         pkgs/main/linux-64::numpy-base-1.26.4-py310hb5e798b_0
  packaging          pkgs/main/linux-64::packaging-23.2-py310h06a4308_0
  tbb                pkgs/main/linux-64::tbb-2021.8.0-hdb19cb5_0


Proceed ([y]/n)? 

in your error log, it looks like the conda satisfiability solver found some conflicts. Could you double check if you are not creating the new env on top of an existing env that causes this?

mlomeli1 avatar Mar 28 '24 11:03 mlomeli1