当前位置:   article > 正文

记安装hdbscan出现的错误_could not build wheels for hdbscan which use pep 5

could not build wheels for hdbscan which use pep 517 and cannot be installed

1、安装dbscan出现如下错误

  1. ERROR: Could not build wheels for gevent which use PEP 517 and cannot be installed directly
  2. error Microsoft Visual C++ 14.0 is required

2、解决

不用怀疑了,出现该问题,肯定是c++编译有问题,请按照下面的方式安装

下载地址:

https://visualstudio.microsoft.com/thank-you-downloading-visual-studio/?sku=BuildTools&rel=16

下载完以后直接安装,大概是6G,耐心等待,安装完以后重启,然后再安装结果如下

  1. C:\Users>pip install hdbscan
  2. Collecting hdbscan
  3. Using cached hdbscan-0.8.27.tar.gz (6.4 MB)
  4. Installing build dependencies ... done
  5. Getting requirements to build wheel ... done
  6. Preparing wheel metadata ... done
  7. Requirement already satisfied: scikit-learn>=0.20 in d:\python362\lib\site-packages (from hdbscan) (0.24.2)
  8. Requirement already satisfied: scipy>=1.0 in d:\python362\lib\site-packages (from hdbscan) (1.5.4)
  9. Requirement already satisfied: joblib>=1.0 in d:\python362\lib\site-packages (from hdbscan) (1.0.1)
  10. Requirement already satisfied: numpy>=1.16 in d:\python362\lib\site-packages (from hdbscan) (1.19.5)
  11. Requirement already satisfied: cython>=0.27 in d:\python362\lib\site-packages (from hdbscan) (0.29.10)
  12. Requirement already satisfied: six in d:\python362\lib\site-packages (from hdbscan) (1.16.0)
  13. Requirement already satisfied: threadpoolctl>=2.0.0 in d:\python362\lib\site-packages (from scikit-learn>=0.20->hdbscan) (2.1.0)
  14. Building wheels for collected packages: hdbscan
  15. Building wheel for hdbscan (PEP 517) ... done
  16. Created wheel for hdbscan: filename=hdbscan-0.8.27-cp36-cp36m-win_amd64.whl size=633614 sha256=a993315ca46394729a72adb1746e77ed4ff8d46334a8ab2050b5ecb8000d06f2
  17. Stored in directory: c:\users\appdata\local\pip\cache\wheels\70\52\fe\83ef5a0e879c48df9968d931d41046226e4cb19a166f0223d2
  18. Successfully built hdbscan
  19. Installing collected packages: hdbscan
  20. Successfully installed hdbscan-0.8.27

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/在线问答5/article/detail/946949?site
推荐阅读
相关标签
  

闽ICP备14008679号