loud-spring-35539
04/14/2023, 6:56 PMimport numpy as np
ModuleNotFoundError: No module named 'numpy'
----------------------------------------
ERROR: Failed building wheel for nmslib
ERROR: Failed to build one or more wheels
Confirmed the deps exist in the requirements file and what not. Tips for debugging?enough-analyst-54434
04/14/2023, 7:10 PMsetup.py
uses setup_requires
to try and get numpy
pre-installed, but the setup_requires
is known broken and even part of the motivation for PEP-518.
The easiest thing to do is probably fork the repo and add a pyproject.toml
with this contents at `python_bindings/pyproject.toml`:
[build-system]
requires = ["setuptools", numpy>=1.10.0 ; python_version>='3.5']
build-backend = "setuptools.build_meta"
You then depend on nmslib
via a VCS requirement instead of your current requirement string (whatever that is) :`git+https://github.com/<your fork>/nmslib@<sha or tag or branch>#egg=nmslib&subdirectory=python_bindings`.
My advice above was lazy and I read all this from the tip of the master branch of the nmslib repo, you almost certainly need to adjust details to pick out the branch / tag / sha you actually want to target.loud-spring-35539
04/14/2023, 7:20 PMenough-analyst-54434
04/14/2023, 7:20 PM