14

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.

desertnaut
  • 57,590
  • 26
  • 140
  • 166
Omar Hossam
  • 311
  • 1
  • 2
  • 9

4 Answers4

5

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.

Dharman
  • 30,962
  • 25
  • 85
  • 135
Omar Hossam
  • 311
  • 1
  • 2
  • 9
5

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

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

mork
  • 1,747
  • 21
  • 23
0

You can run build essential to fix your error

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

0

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 
Rich
  • 6,470
  • 15
  • 32
  • 53
Anis
  • 1
  • 2