Linuxのconda安装Faiss: '_swigfaiss' という名前のないモジュール

免責事項:この記事は、オリジナルである、すべての権利予約https://blog.csdn.net/weixin_41864878/article/details/88683170

インストールされていない測定python2.7、3.xのようPythonでアナコンダを確認
pythonでアナコンダは3.6 =直接condaのpythonをインストール置き換えることができ
たり、新しい環境condaを作成-n py3.6のpythonでアナコンダを作成= 3.6は
またcondaのインストールを確認する必要がありますSWIG openblas

試します

# CPU version only
conda install faiss-cpu -c pytorch
# Make sure you have CUDA installed before installing faiss-gpu, otherwise it falls back to CPU version
conda install faiss-gpu -c pytorch # [DEFAULT]For CUDA8.0
conda install faiss-gpu cuda90 -c pytorch # For CUDA9.0
conda install faiss-gpu cuda92 -c pytorch # For CUDA9.2
# cuda90/cuda91 shown above is a feature, it doesn't install CUDA for you.

エラーModuleNotFoundError場合:「faiss.swigfaiss_gpu」という名前ませモジュール
CondaはMKLは設置しないで
解決することができます

参考:https://github.com/facebookresearch/faiss/issues/485

おすすめ

転載: blog.csdn.net/weixin_41864878/article/details/88683170