【发布时间】:2019-11-03 11:10:59
【问题描述】:
我想通过 conda install -c pytorch faiss-gpu 在 Lambda Stack 上安装 Faiss-GPU,但没有安装 conda。
我尝试了这里提到的解决方案:Installing faiss on Google Colaboratory 使用这个版本的 faiss https://anaconda.org/pytorch/faiss-gpu/1.6.0/download/linux-64/faiss-gpu-1.6.0-py36h1a5d453_0.tar.bz2 但它说:
ImportError: libmkl_intel_lp64.so: cannot open shared object file: No such file or directory
ModuleNotFoundError: No module named '_swigfaiss_avx2'
ImportError: libmkl_intel_lp64.so: cannot open shared object file: No such file or directory
ModuleNotFoundError: No module named '_swigfaiss'
在 Lambda Stack 上安装 Faiss 的正确方法是什么?
【问题讨论】:
-
你试过pip吗?
pip install faiss-gpu -
是的,它是:
error: command 'swig' failed with exit status 1,我试过这个github.com/automl/auto-sklearn/issues/…,但没有用。 -
是的,当我尝试
make -C python时,它是:swigfaiss.cpp:173:11: fatal error: Python.h: No such file or directory -
我也遇到了同样的问题。你找到解决办法了吗?