BERTopic: ERROR: Could not build wheels for hdbscan, which is required to install pyproject.toml-based projects
The Bertopic installation, (Edit- Python Version 3.9.12)
pip install bertopic
fails by throwing the below error :
` note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for hdbscan Failed to build hdbscan ERROR: Could not build wheels for hdbscan, which is required to install pyproject.toml-based projects`
However, when I searched stackoverflow - the provided solution is not helping me.
Any lead on how to fix this?
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 31 (13 by maintainers)
If you’re getting the below error while installing bertopic
ERROR: Could not build wheels for hdbscan, which is required to install pyproject.toml-based projects
First Make sure you’ve Microsoft Visual C++, check here
Second install the hdbscan command:
conda install -c conda-forge hdbscan
Third install bertopic command:
pip install bertopic
Now you’re good to go 😃