nmslib / hnswlib

Header-only C++/python library for fast approximate nearest neighbors
https://github.com/nmslib/hnswlib
Apache License 2.0
4.11k stars 607 forks source link

Error: ‘_mm512_reduce_add_ps’ was not declared in this scope #546

Open zhang-jingzhe opened 3 months ago

zhang-jingzhe commented 3 months ago

I'm trying to install from sources on Ubuntu 16.04.7 LTS. After I execute pip install ., error happens that "Could not build wheels for hnswlib". image the exact error is "‘_mm512_reduce_add_ps’ was not declared in this scope". image I executed the above command in a virtual environment created by conda, with python version 3.8.18.

zhang-jingzhe commented 3 months ago

I‘ve solved the above problem by setting an environment variable: export HNSWLIB_NO_NATIVE=1 refer to: https://stackoverflow.com/questions/73969269/error-could-not-build-wheels-for-hnswlib-which-is-required-to-install-pyprojec