Last active
April 20, 2023 21:47
-
-
Save korakot/d0a49d7280bd3fb856ae6517bfe8da7a to your computer and use it in GitHub Desktop.
Install faiss on Google Colab without using Conda
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# CPU | |
!curl -L https://anaconda.org/pytorch/faiss-cpu/1.6.0/download/linux-64/faiss-cpu-1.6.0-py36h6bb024c_0.tar.bz2 | tar xj | |
# GPU, CUDA 10 | |
# !curl -L https://anaconda.org/pytorch/faiss-gpu/1.6.0/download/linux-64/faiss-gpu-1.6.0-py36h1a5d453_0.tar.bz2 | tar xj | |
# install | |
!mv lib/python3.6/site-packages/* /usr/local/lib/python3.6/dist-packages/ | |
import faiss |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For CPU | |
!apt install libomp-dev | |
!pip install faiss | |
# For GPU | |
!pip install faiss-gpu |
Author
korakot
commented
Oct 27, 2018
# pygraphviz
!wget https://anaconda.org/anaconda/pygraphviz/1.3/download/linux-64/pygraphviz-1.3-py36h14c3975_1.tar.bz2
!tar xvjf pygraphviz-1.3-py36h14c3975_1.tar.bz2
!cp -r lib/python3.6/site-packages/* /usr/local/lib/python3.6/dist-packages/
import pygraphviz
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment