当前位置:   article > 正文

bertopic踩坑记录_error: could not build wheels for hdbscan, which i

error: could not build wheels for hdbscan, which is required to install pypr

pip install bertopic报错

ERROR: Could not build wheels for hdbscan, which is required to install pyproject.toml-based projects

 解决路线:

方案1、(未奏效)

参考bertopic从安装踩坑到成功运行_bertopic安装-CSDN博客手动安装hbdscan,安装包链接Links for hdbscan。按步骤手动安装正确版本的.whl后,依旧报错,报错内容如下:

ERROR: Could not install packages due to an OSError: [Errno 2] No such file or directory: 'D:\\...\\hdbscan-0.8.31-cp311-cp311-win_amd64.whl'

 报错未解决,放弃方案1.

方案2、

参考解决Windows下pip安装bertopic报错:Failed building wheel for hdbscan-CSDN博客,直接下载visual studio,然后pip install bertopic,问题解决。

执行bertopic.py脚本报错

ImportError: cannot import name 'BERTopic' from partially initialized module 'bertopic' (most likely due to a circular import) 

原因:脚本命名为bertopic,跟引入的模块重名了,更改一下文件名即可。

 

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

闽ICP备14008679号