Problem

尝试用 pip 在命令行安装 hdbscan 时,发生如下报错

pip install hdbscan
...
Building wheels for collected packages: hdbscanBuilding wheel for hdbscan (PEP 517) ... errorERROR: Command errored out with exit status 1:command: 'c:\users\administrator\.conda\envs\cluster\python.exe' 'c:\users\administrator\.conda\envs\cluster\lib\site-packages\pip\_vendor\pep517\_in_process.py' build_wheel 'C:\Users\ADMINI~1\AppData\Local\Temp\tmpth7v3gf4'cwd: C:\Users\ADMINI~1\AppData\Local\Temp\pip-install-4f2tqlz5\hdbscan_1e92e8f5b6024d1cb14f77178788926aComplete output (37 lines):running bdist_wheelrunning buildrunning build_pycreating buildcreating build\lib.win-amd64-3.5creating build\lib.win-amd64-3.5\hdbscancopying hdbscan\hdbscan_.py -> build\lib.win-amd64-3.5\hdbscancopying hdbscan\plots.py -> build\lib.win-amd64-3.5\hdbscancopying hdbscan\prediction.py -> build\lib.win-amd64-3.5\hdbscancopying hdbscan\robust_single_linkage_.py -> build\lib.win-amd64-3.5\hdbscancopying hdbscan\validity.py -> build\lib.win-amd64-3.5\hdbscancopying hdbscan\__init__.py -> build\lib.win-amd64-3.5\hdbscancreating build\lib.win-amd64-3.5\hdbscan\testscopying hdbscan\tests\test_hdbscan.py -> build\lib.win-amd64-3.5\hdbscan\testscopying hdbscan\tests\test_rsl.py -> build\lib.win-amd64-3.5\hdbscan\testscopying hdbscan\tests\__init__.py -> build\lib.win-amd64-3.5\hdbscan\testsrunning build_extcythoning hdbscan/_hdbscan_tree.pyx to hdbscan\_hdbscan_tree.ccythoning hdbscan/_hdbscan_linkage.pyx to hdbscan\_hdbscan_linkage.ccythoning hdbscan/_hdbscan_boruvka.pyx to hdbscan\_hdbscan_boruvka.ccythoning hdbscan/_hdbscan_reachability.pyx to hdbscan\_hdbscan_reachability.ccythoning hdbscan/_prediction_utils.pyx to hdbscan\_prediction_utils.ccythoning hdbscan/dist_metrics.pyx to hdbscan\dist_metrics.cbuilding 'hdbscan._hdbscan_tree' extensionC:\Users\ADMINI~1\AppData\Local\Temp\pip-build-env-duca94o_\overlay\Lib\site-packages\Cython\Compiler\Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: C:\Users\ADMINI~1\AppData\Local\Temp\pip-install-4f2tqlz5\hdbscan_1e92e8f5b6024d1cb14f77178788926a\hdbscan\_hdbscan_tree.pyxtree = Parsing.p_module(s, pxd, full_module_name)C:\Users\ADMINI~1\AppData\Local\Temp\pip-build-env-duca94o_\overlay\Lib\site-packages\Cython\Compiler\Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: C:\Users\ADMINI~1\AppData\Local\Temp\pip-install-4f2tqlz5\hdbscan_1e92e8f5b6024d1cb14f77178788926a\hdbscan\_hdbscan_linkage.pyxtree = Parsing.p_module(s, pxd, full_module_name)C:\Users\ADMINI~1\AppData\Local\Temp\pip-build-env-duca94o_\overlay\Lib\site-packages\Cython\Compiler\Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: C:\Users\ADMINI~1\AppData\Local\Temp\pip-install-4f2tqlz5\hdbscan_1e92e8f5b6024d1cb14f77178788926a\hdbscan\_hdbscan_boruvka.pyxtree = Parsing.p_module(s, pxd, full_module_name)C:\Users\ADMINI~1\AppData\Local\Temp\pip-build-env-duca94o_\overlay\Lib\site-packages\Cython\Compiler\Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: C:\Users\ADMINI~1\AppData\Local\Temp\pip-install-4f2tqlz5\hdbscan_1e92e8f5b6024d1cb14f77178788926a\hdbscan\_hdbscan_reachability.pyxtree = Parsing.p_module(s, pxd, full_module_name)C:\Users\ADMINI~1\AppData\Local\Temp\pip-build-env-duca94o_\overlay\Lib\site-packages\Cython\Compiler\Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: C:\Users\ADMINI~1\AppData\Local\Temp\pip-install-4f2tqlz5\hdbscan_1e92e8f5b6024d1cb14f77178788926a\hdbscan\_prediction_utils.pyxtree = Parsing.p_module(s, pxd, full_module_name)C:\Users\ADMINI~1\AppData\Local\Temp\pip-build-env-duca94o_\overlay\Lib\site-packages\Cython\Compiler\Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: C:\Users\ADMINI~1\AppData\Local\Temp\pip-install-4f2tqlz5\hdbscan_1e92e8f5b6024d1cb14f77178788926a\hdbscan\dist_metrics.pxdtree = Parsing.p_module(s, pxd, full_module_name)error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/----------------------------------------ERROR: Failed building wheel for hdbscan
Failed to build hdbscan
ERROR: Could not build wheels for hdbscan which use PEP 517 and cannot be installed directly

Solvement

使用 conda 重新安装 hdbscan

  1. 打开 anaconda Cloud 官网
  2. 在搜索栏输入 hdbscan,选择一个下载次数最多,或者平台支持最广的版本 (2020/12/16 更新: 建议选择第二个下载源, 即 zeus1942/hdbscan, 作者在使用第一个时遇到了一些问题)
  3. 任选一个安装命令执行即可

最后显示安装成功

Downloading and Extracting Packages
intel-openmp-2020.3  | 2.0 MB    | ############################################################################ | 100%
scipy-1.1.0          | 10.3 MB   | ############################################################################ | 100%
mkl-2018.0.3         | 112.6 MB  | ############################################################################ | 100%
certifi-2018.8.24    | 139 KB    | ############################################################################ | 100%
scikit-learn-0.20.0  | 3.8 MB    | ############################################################################ | 100%
numpy-1.14.2         | 2.9 MB    | ############################################################################ | 100%
hdbscan-0.8.18       | 494 KB    | ############################################################################ | 100%
Preparing transaction: done
Verifying transaction: done
Executing transaction: done(Cluster) C:\Users\Administrator>

Solved ERROR: Could not build wheels for hdbscan which use PEP 517 and cannot be installed directly相关推荐

  1. ERROR: Could not build wheels for cryptography which use PEP 517 and cannot be installed directly

    问题描述 最近在ubuntu16.04上安装pwntools卡到一个问题,报错提示如下: ERROR: Could not build wheels for cryptography which us ...

  2. ERROR: Could not build wheels for mujoco-py which use PEP 517 and cannot be installed directly

    今天安装mujoco-py的时候,遇见了下面的错误: ➜ v2 pip install mujoco-py Looking in indexes: http://pip.baidu.com/root/ ...

  3. ERROR: Could not build wheels for numpy which use PEP 517 and cannot be installed directly

    pip install pucuda 出现问题 pip install --upgrade pip setuptools wheel pip install -i https://pypi.tuna. ...

  4. Debug pip: Could not build wheels for _ which use PEP 517 and cannot be installed directly - Easy So

    Mac 安装gevent时报错 Failed to build gevent ERROR: Could not build wheels for gevent which use PEP 517 an ...

  5. Could not build wheels for xx which use PEP 517 and cannot be installed directly

    安装dgl报错,Could not build wheels for xx which use PEP 517 and cannot be installed directly 查询后得知需要 更新p ...

  6. Could not build wheels for cryptography which use PEP 517 and cannot be installed directly

    问题描述 pip install selenium安装报错:Could not build wheels for cryptography which use PEP 517 and cannot b ...

  7. 安装pandas-profiling错误:Could not build wheels for _ which use PEP 517 and cannot be installed directly

    我是通过安装visual studio C++ build tools解决: 安装方式参考

  8. 解决Could not build wheels for pikepdf which use PEP 517 and cannot be installed directly

    windows系统下 问题:安装img2pdf 时报错  解决方法:(我是在pycharm 的 Terminal里直接执行的命令) 1. 升级pip python -m pip install --u ...

  9. 解决“Could not build wheels for xx which use PEP 517 and cannot be installed directly“问题

    在安装apache_beam时,报如下错误: 更新pip 和 setuptools python -m pip install --upgrade pip python -m pip install ...

最新文章

  1. python完全新手教程-小白的Python新手教程​
  2. Linux实战教学笔记49:Zabbix监控平台3.2.4(一)搭建部署与概述
  3. 去除桌面图标蓝底的方法步骤
  4. 一款java代码生成器(我受够了加班),走起!
  5. 把佳佳的博客搬出去了
  6. spring学习(35):c名称空间注入
  7. [NOI2002]荒岛野人 数论
  8. Zabbix监控Jenkins过程详解
  9. appium入门篇(2)--desired capabilities
  10. ABAP - 3D Graphs with SAP
  11. 跨境移动互联网的魅力演绎,hao123无论成就下一个条目?
  12. sumo添加车辆_SUMO 交通控制接口 —— TraCI
  13. vb中如何连接mysql_vb怎么连接数据库
  14. 报表开发神器:phantomjs生成PDF ,Echarts图片,自动生成word文档实战
  15. 胖子哥的大数据之路(二)- 大数据结构化数据存储应用模式
  16. python怎么算二元一次方程_我教学生写作业——python解二元一次方程组
  17. 拉格朗日插值法与牛顿插值法
  18. java tracert_超强的Tracert工具(WinMTR)
  19. qpython androidhelper gps_Qpython SL4A获取手机电量和GPS
  20. 鸿蒙3部曲先看哪部,“斗罗”有四作,那当年齐名的“鸿蒙”系列到底有“几部曲”?...

热门文章

  1. linux登录提示文件 motd 有趣的motd
  2. MyBatis系列之--Java 项目(非SpringBoot)集成MyBatis
  3. 关于浏览器显示出现中文乱码问题(已解决)
  4. 南方电网两栖机器人_南方电网首个作业级水下机器人落户海南 为海底电缆“护驾”...
  5. m3u8.sqlite转mp4(txkt,文末附程序下载地址)
  6. ACCV 2020 最受关注的 Top10 代码开源论文!
  7. 朋友圈点赞的测试用例
  8. 数位DP(期末机测题)
  9. git push报错 failed to push some refs to 解决方法
  10. 《中国企业家》杂志:柳传志走访旧金山