1、安装dbscan出现如下错误
ERROR: Could not build wheels for gevent which use PEP 517 and cannot be installed directly
error Microsoft Visual C++ 14.0 is required
2、解决
不用怀疑了,出现该问题,肯定是c++编译有问题,请按照下面的方式安装
下载地址:
https://visualstudio.microsoft.com/thank-you-downloading-visual-studio/?sku=BuildTools&rel=16
下载完以后直接安装,大概是6G,耐心等待,安装完以后重启,然后再安装结果如下
C:\Users>pip install hdbscan
Collecting hdbscan
Using cached hdbscan-0.8.27.tar.gz (6.4 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing wheel metadata ... done
Requirement already satisfied: scikit-learn>=0.20 in d:\python362\lib\site-packages (from hdbscan) (0.24.2)
Requirement already satisfied: scipy>=1.0 in d:\python362\lib\site-packages (from hdbscan) (1.5.4)
Requirement already satisfied: joblib>=1.0 in d:\python362\lib\site-packages (from hdbscan) (1.0.1)
Requirement already satisfied: numpy>=1.16 in d:\python362\lib\site-packages (from hdbscan) (1.19.5)
Requirement already satisfied: cython>=0.27 in d:\python362\lib\site-packages (from hdbscan) (0.29.10)
Requirement already satisfied: six in d:\python362\lib\site-packages (from hdbscan) (1.16.0)
Requirement already satisfied: threadpoolctl>=2.0.0 in d:\python362\lib\site-packages (from scikit-learn>=0.20->hdbscan) (2.1.0)
Building wheels for collected packages: hdbscan
Building wheel for hdbscan (PEP 517) ... done
Created wheel for hdbscan: filename=hdbscan-0.8.27-cp36-cp36m-win_amd64.whl size=633614 sha256=a993315ca46394729a72adb1746e77ed4ff8d46334a8ab2050b5ecb8000d06f2
Stored in directory: c:\users\appdata\local\pip\cache\wheels\70\52\fe\83ef5a0e879c48df9968d931d41046226e4cb19a166f0223d2
Successfully built hdbscan
Installing collected packages: hdbscan
Successfully installed hdbscan-0.8.27