Skip to content

Instantly share code, notes, and snippets.

@alexlib
Forked from korakot/faiss.py
Created January 9, 2019 19:39
Show Gist options
  • Save alexlib/93cf68aa8d3d3c1edc413def229af86d to your computer and use it in GitHub Desktop.
Save alexlib/93cf68aa8d3d3c1edc413def229af86d to your computer and use it in GitHub Desktop.
Install faiss on Google Colab without using Conda
!wget https://anaconda.org/pytorch/faiss-cpu/1.2.1/download/linux-64/faiss-cpu-1.2.1-py36_cuda9.0.176_1.tar.bz2
!tar xvjf faiss-cpu-1.2.1-py36_cuda9.0.176_1.tar.bz2
!cp -r lib/python3.6/site-packages/* /usr/local/lib/python3.6/dist-packages/
!pip install mkl
import faiss
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment