scikit-learn-contrib / hdbscan

A high performance implementation of HDBSCAN clustering.
http://hdbscan.readthedocs.io/en/latest/
BSD 3-Clause "New" or "Revised" License
2.81k stars 506 forks source link

HDBSCAN version 0.8.33 not able to install with python version 3.10.13 #611

Open bindu-0107 opened 1 year ago

bindu-0107 commented 1 year ago

Unable to install hdbscan version 0.8.33 with python version 3.10.13 giving the below error:

hdbscan/_hdbscan_tree.c:6:10: fatal error: Python.h: No such file or directory 6 | #include "Python.h" | ^~~~~~ compilation terminated. error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1 [end of output]

can you pls help me resolve this issue

mkl-joseph commented 1 year ago

Having same issue on Python 3.9.5 virtual environment...

josemarfdc commented 1 year ago

python-dev is missing, if you install, this issue should go away. See here https://stackoverflow.com/questions/21530577/fatal-error-python-h-no-such-file-or-directory