赞
踩
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,问题解决。
ImportError: cannot import name 'BERTopic' from partially initialized module 'bertopic' (most likely due to a circular import)
原因:脚本命名为bertopic,跟引入的模块重名了,更改一下文件名即可。
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。