Faiss: Faiss import fails with pip install

Created on 11 Oct 2019  路  5Comments  路  Source: facebookresearch/faiss

Summary

Installed faiss on both Linux/ MAC OS platform via pip install. Importing the package ends with an ImportError: No module named _swigfaiss error

Platform

Linux (Mint 19.2) /MAC OS Latest version

OS:

Faiss version:
1.5.3
Faiss compilation options:

Running on:

  • [x] CPU
  • [ ] GPU

Interface:

  • [ ] C++
  • [x] Python

Reproduction instructions


image

install

Most helpful comment

try this:
pip install faiss-cpu

All 5 comments

The pip package is not official. Could you try using conda?

Do you have any plans to support official pip installation in the future?

try this:
pip install faiss-cpu

Works fine when using a conda env.

No activity, closing.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

brunodoamaral picture brunodoamaral  路  3Comments

hipitt picture hipitt  路  3Comments

jukaradayi picture jukaradayi  路  3Comments

minjiaz picture minjiaz  路  3Comments

0DF0Arc picture 0DF0Arc  路  3Comments