I was following Install via Conda section of current install.md file. I already had FAISS installed in my system installed the same way. So I decided to update it. When I run conda install faiss-cpu -c pytorch as mentioned in documentation, I get this conformation:
The following packages will be UPDATED:
ca-certificates 2019.1.23-0 --> 2019.5.15-0
certifi 2019.3.9-py37_0 --> 2019.6.16-py37_0
conda 4.6.14-py37_0 --> 4.7.5-py37_0
faiss-cpu 1.5.1-py37h6bb024c_1 --> 1.5.3-py37h6bb024c_0
openssl 1.1.1b-h7b6447c_1 --> 1.1.1c-h7b6447c_1
And when installation is complete and I try to import faiss in python,
import faiss
I get an immdiate crash saying Illegal instruction (core dumped)
OS: Ubuntu 18.04.1 LTS
Faiss version: 1.5.3-py37h6bb024c_0
Faiss compilation options: NA
Running on:
Interface:
Install latest CPU version of faiss for conda
# CPU version only
conda install faiss-cpu -c pytorch
then import faiss in code
If anyone else is struggling and wanna go back to previous working version, use: conda install faiss-cpu=1.5.1 -c pytorch -y
The latest version is compiled with avx2 instructions, which your CPU probably does not support. I'll look into making a non-optimized package available.
My processor is Intel Pentium G4400 Skylake Dual-Core 3.3GHz Desktop Processor.
Same issue here.
BTW: 1.5.2 works fine.
no activity, closing.
Sorry ! I have a same trouble but when i install version 1.5.1 or 1.5.2, they not found on pip, i try install via git-tag not success. Setup.py not found.
How can i fix it ???
@khs123 by anaconda or compiling source yourself.
Most helpful comment
The latest version is compiled with avx2 instructions, which your CPU probably does not support. I'll look into making a non-optimized package available.