Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when install on windows #62

Closed
spasaria opened this issue Feb 19, 2021 · 3 comments
Closed

Error when install on windows #62

spasaria opened this issue Feb 19, 2021 · 3 comments

Comments

@spasaria
Copy link

Hi everyone,
when i try to install bertopic on windows (pip install bertopic) i get an error. The problem arises on this line: " Building wheels for collected packages: hdbscan".
The next line is: Building wheel for hdbscan (PEP 517) ... error
...
ERROR: Failed building wheel for hdbscan
Failed to build hdbscan
ERROR: Could not build wheels for hdbscan which use PEP 517 and cannot be installed directly.

I tried to use different python version (3.5 - 3.6 - 3.7) but nothing has changed.
Did someone have the same problem and solved it?
Thank you all,

Andrea.

@MaartenGr
Copy link
Owner

If I am correct, there should be the following error/message prior to the error you encounter, namely:
"error: command 'gcc' failed with exit status 1"

There are several things that you can do to fix this error:

  • You do not have a C++ compiler installed which can be fixed by downloading Installing Visual C++ Build Tools
  • Install HDBSCAN via conda/miniconda: conda install -c conda-forge hdbscan
  • Finally, there is a thread here which discusses similar issues in detail

Hopefully, the above will help you out a bit!

@spasaria
Copy link
Author

Thank you @MaartenGr for the precious help. I installed c++ compiler and then installation is successful completed.
Sincerely,

Andrea.

@TobiasKlm
Copy link

Just as a sidenote: if you're having troubles installing the visual C++ Build Tools, this did the job for me https://github.com/bycloudai/InstallVSBuildToolsWindows

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants