I encountered with same issue on RHEL 9.3. Here is the error message. Please suggest me how to resolve this issue
In file included from /tmp/pip-build-env-bqi319ry/overlay/lib/python3.9/site-packages/pybind11/include/pybind11/attr.h:13, from /tmp/pip-build-env-bqi319ry/overlay/lib/python3.9/site-packages/pybind11/include/pybind11/detail/class.h:12, from /tmp/pip-build-env-bqi319ry/overlay/lib/python3.9/site-packages/pybind11/include/pybind11/pybind11.h:12, from /tmp/pip-build-env-bqi319ry/overlay/lib/python3.9/site-packages/pybind11/include/pybind11/functional.h:14, from ./python_bindings/bindings.cpp:2: /tmp/pip-build-env-bqi319ry/overlay/lib/python3.9/site-packages/pybind11/include/pybind11/detail/common.h:274:10: fatal error: Python.h: No such file or directory 274 | #include <Python.h> | ^~~~~~~~~~ compilation terminated. error: command '/usr/bin/g++' failed with exit code 1 [end of output]
note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for hnswlib Failed to build hnswlib ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (hnswlib)