Omar Hossam
Omar Hossam

Reputation: 312

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

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.

Upvotes: 13

Views: 22360

Answers (4)

Anis
Anis

Reputation: 1

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 

Upvotes: 0

Alfan Dinda Rahmawan
Alfan Dinda Rahmawan

Reputation: 821

You can run build essential to fix your error

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

Upvotes: 0

mork
mork

Reputation: 1863

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

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

Upvotes: 7

Omar Hossam
Omar Hossam

Reputation: 312

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.

Upvotes: 6

Related Questions