ERROR: Could not build wheels for hdbscan, which is required to install pyproject.toml-based projects
See original GitHub issueThe 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?
Issue Analytics
- State:
- Created a year ago
- Comments:14 (6 by maintainers)
Top Results From Across the Web
How to resolve ERROR: Could not build wheels for hdbscan ...
You can solve this problem by installing python-dev python3 -m pip install python-dev-tools --user --upgrade. Also, try to use conda install ...
Read more >error: could not build wheels for hdbscan, which is required to ...
ERROR : Could not build wheels for hdbscan, which is required to install pyproject.toml-based projects. Open side panel. Python package installs globally but ......
Read more >ERROR: Could not build wheels for hdbscan in Python
To solve the error "Could not build wheels for hdbscan which use PEP 517 and cannot be installed directly", run the pip install...
Read more >Python package installs globally but fails within virtual ...
... hdbscan Failed to build fdasrsf ERROR: Could not build wheels for fdasrsf, which is required to install pyproject.toml-based projects
Read more >hdbscan - PyPI
The clusterer objects also have an attribute providing cluster membership strengths, resulting in optional soft clustering (and no further compute expense).
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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 hdbscanThird install bertopic command:
pip install bertopicNow you’re good to go 😃
@MaartenGr Thanks a lot! This helped me 👍