kyamagu / faiss-wheels

Unofficial faiss wheel builder
MIT License
275 stars 35 forks source link

Installing faiss-cpu ,happens error #61

Closed Sueoka-ppc closed 2 years ago

Sueoka-ppc commented 2 years ago

When I install happens error

ERROR: Command errored out with exit status 1:
   command: /home/sueoka/anaconda3/envs/nemo_v2/bin/python /home/sueoka/anaconda3/envs/nemo_v2/lib/python3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py build_wheel /tmp/tmps_8f0m_q
       cwd: /tmp/pip-install-kfbf4zqn/faiss-cpu_35de81a7d3fc4ea899e7130f7a81f594
  Complete output (10 lines):
  running bdist_wheel
  running build
  running build_py
  running build_ext
  building 'faiss._swigfaiss' extension
  swigging faiss/faiss/python/swigfaiss.i to faiss/faiss/python/swigfaiss_wrap.cpp
  swig -python -c++ -Doverride= -I/usr/local/include -Ifaiss -doxygen -DSWIGWORDSIZE64 -o faiss/faiss/python/swigfaiss_wrap.cpp faiss/faiss/python/swigfaiss.i
  swig error : Unrecognized option -doxygen
  Use 'swig -help' for available options.
  error: command '/usr/bin/swig' failed with exit code 1
  ----------------------------------------
  ERROR: Failed building wheel for faiss-cpu
Failed to build faiss-cpu
ERROR: Could not build wheels for faiss-cpu which use PEP 517 and cannot be installed directly

my env

SWIG Version 3.0.12 Compiled with g++ [powerpc64le-unknown-linux-gnu] Configured options: +pcre gcc (Ubuntu/IBM 5.5.0-12ubuntu1) 5.5.0 20171010 [ibm/gcc-5-branch revision 248295] Python 3.8.0

kyamagu commented 2 years ago

Use newer version of swig if you want to build a wheel from the source.

Sueoka-ppc commented 2 years ago

I update swing to 4.0.2, install was success! thank you!