how do I solve " Failed building wheel for hdbscan "?

19.5k views Asked by At

I tried to download Hdbscan using pip install hdbscan , I get this :

ERROR: Failed building wheel for hdbscan

ERROR: Could not build wheels for hdbscan which use PEP 517 and cannot be installed directly

I've tried several solutions, it didn't work tho.

4

There are 4 answers

0
Omar Hossam On

you simply use conda install -c conda-forge hdbscan instead of pip

or you can go to : https://anaconda.org/search?q=hdbscan if the first code doesn't work too.

0
Alfan Dinda Rahmawan On

You can run build essential to fix your error

sudo apt-get update && apt-get install -y build-essential

0
mork On

Try to install the equivalent python3.[x]-dev package.

For ex, for python3.8 use: sudo apt install python3.8-dev

0
Anis On

Here is a solution to install hdbscan on a notebook instance (it works on aws sagemaker notebook):

apt-get install g++-6 --yes    
apt-get install gcc --yes
pip install hdbscan