faiss icon indicating copy to clipboard operation
faiss copied to clipboard

Installation troubles on Ubuntu 20.04.3 LTS

Open AlexanderNevarko opened this issue 3 years ago • 5 comments

Summary

I have tried installing FAISS package according to the installation manual with commands "conda install -c pytorch faiss-cpu", "conda install -c pytorch faiss-gpu", "conda install -c pytorch faiss-gpu cudatoolkit=11.4". After that importing faiss gives me "ModuleNotFoundError: No module named 'faiss'".

Command "conda list" shows me a list of packages with the only faiss-like package in the list: faiss-proc 1.0.0 cuda rapidsai

I am using base conda environment. Don't know how to deal with the problem.

Platform

Ubuntu 20.04.3 LTS NVIDIA GTX 1080 Ti CUDA 11.4 conda 4.11.0

Running on:

  • [x] CPU
  • [x] GPU

Interface:

  • [ ] C++
  • [x] Python

Reproduction instructions

AlexanderNevarko avatar Mar 16 '22 11:03 AlexanderNevarko

Could you try with cudatoolkit=11.3?

beauby avatar Mar 16 '22 14:03 beauby

Also, which version of Python are you using?

beauby avatar Mar 16 '22 14:03 beauby

Also, which version of Python are you using?

I am using python 3.8.10, forgot to mention

AlexanderNevarko avatar Mar 16 '22 15:03 AlexanderNevarko

Could you try with cudatoolkit=11.3?

Same problem occurs. During the installation process it writes about package conflicts, but in the end it prints: "Your installed version is: 2.31"

AlexanderNevarko avatar Mar 16 '22 15:03 AlexanderNevarko

  • It is mentioned here that we should install either, not both. Can you check that out?
  • Is it possible that you have a file named faiss.py in the same working directory? If yes, that might cause the problem with importing faiss.
  • Does creating a new conda environment and installing faiss there fix your issue?

Just my 2 cents.

vishaln15 avatar Apr 14 '22 03:04 vishaln15