requirements.txt with compatible third-party versions
senisioi opened this issue · comments
Please add a requirements.txt with compatible third-party versions or some means to create conda evnironments.
Installing the latest versions breaks the bucc.sh
script and it's tedious to debug and figure out the mismatches of installed libraries.
I have run these commands:
pip install torch==1.0
pip install faiss faiss-gpu
pip install scipy numpy
pip install cython==0.29.6
pip install fairseq==0.12.1
pip install tabulate
pip install pandas
pip install jieba
pip install transliterate==1.10.2
pip install tensorboardX
but I still get an Attribute error when running
from faiss._swigfaiss import delete_FloatVector
Apparently it's a well-known Google collab issue. I fixed it by running
!apt install libomp-dev
!pip install faiss
With the following pip installs:
! pip install cython==0.29.6
! pip install fairseq==0.12.1
! pip install tabulate
! pip install pandas
! pip install jieba
! pip install transliterate==1.10.2
! pip install tensorboardX
Working colab example here
Hi @senisioi, was there only an issue with the faiss(-gpu) library when using Google collab? It seems in order to get FAISS to work on collab there are workarounds needed like the one you used.
Marking as closed. Please re-open if needed!