记安装hdbscan出现的错误

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

  • 2
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 2
    评论
根据引用和引用提到的方法,可以尝试以下安装HDBSCAN的步骤: 1. 打开Anaconda Prompt控制台。 2. 确保你的网络连接正常,并输入以下命令进行安装尝试: - pip install hdbscan 或者 - conda install hdbscan 或者 - pip install --upgrade git https://github.com/scikit-learn-contrib/hdbscan.git#egg=hdbscan 如果以上方法都失败了,可以尝试以下步骤: 1. 在Anaconda Prompt中转到HDBSCAN所在的文件夹路径。 2. 确保你已经下载了适合你的操作系统和Python版本的HDBSCAN安装文件(.whl文件)。 3. 输入以下命令进行安装尝试: - pip install hdbscan-0.8.28-cp38-cp38-win_amd64.whl -i https://pypi.tuna.tsinghua.edu.cn/simple 如果在安装HDBSCAN之后,使用bertopic时出现了ValueError: numpy.ndarray size changed, may indicate binary incompatibility的错误,那么您可能需要检查numpy库的版本兼容性。请尝试以下解决方法: 1. 在Anaconda Prompt中输入以下命令卸载numpy: - pip uninstall numpy 2. 然后重新安装numpy: - pip install numpy==1.19.3 3. 接下来,再次尝试安装bertopic: - pip install bertopic==0.21.0 希望这些步骤能够帮助您成功安装HDBSCAN并解决问题。如果仍然遇到困难,请提供更多错误信息以便更好地帮助您。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* [【Python】hdbscan安装失败的解决](https://blog.csdn.net/u013948858/article/details/103701284)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] - *2* *3* [Python安装bertopic库踩的坑](https://blog.csdn.net/weixin_43392789/article/details/128208846)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

ITIRONMAN

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值