如何解决" Failed building wheel for hdbscan "?



我尝试使用pip install hdbscan下载Hdbscan,得到的是:

错误:为hdbscan 构建轮子失败

错误:无法为使用PEP517的hdbscan构建轮子,也无法直接安装

我试过几种解决方案,但都没用。

您只需使用conda install -c conda-forge hdbscan而不是pip

或者您可以访问:https://anaconda.org/search?q=hdbscan如果第一个代码也不起作用。

尝试安装等效的python3.[x]-dev包。

对于ex,对于python3.8使用:sudo apt install python3.8-dev

您可以运行build-ential来修复错误

sudo apt-get-update&apt-get-install-y构建基本

这里有一个在笔记本实例上安装hdbscan的解决方案(它适用于aws sagemaker笔记本(:

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

最新更新