Share via

Failed to build hnswlib in python

Anonymous
2023-03-23T22:10:05+00:00

HI

I am trying to install chromadb with !pip install chromadb and I get the following messages.

Building wheels for collected packages: hnswlib

Building wheel for hnswlib (pyproject.toml):

started

Building wheel for hnswlib (pyproject.toml): finished with status 'error'

Failed to build hnswlib error:

Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/

I install Microsoft Visual C++ 14.0 on Windows from the Microsoft site, but I still get the error. What else do I need to install on Windows from this link https://visualstudio.microsoft.com/visual-cpp-build-tools/

Thanks

Windows for home | Windows 10 | Install and upgrade

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

5 answers

Sort by: Most helpful
  1. Anonymous
    2023-07-03T21:04:28+00:00

    I had the same issue, and I finally thought to ask Bing's (Chat) option and the answer worked for me. You were almost there, the bing answer however pointed to the specific item you need to get installed to resolve the dependency issue.

    The error message you are seeing is because you don't have Microsoft Visual C++ 14.0 or greater installed. You can download it from the official website ¹. Once you have downloaded it, you can install it by following these steps:

    • Go to this page: https://visualstudio.microsoft.com/visual-cpp-build-tools/
    • Click on "Download Build Tools" and run what you downloaded
    • Click on "Install" (a window with different options to click should show up)
    • Click only on "Desktop Development with C++" and click on install (image for reference) ²
    • Reboot your system

    I hope this helps!

    10+ people found this answer helpful.
    0 comments No comments
  2. Anonymous
    2023-04-07T10:05:05+00:00

    Helllo i have the same problem, did this resolved?

    3 people found this answer helpful.
    0 comments No comments
  3. Anonymous
    2023-06-27T09:00:22+00:00

    Hi I also have this problem. Please help!!!

    1 person found this answer helpful.
    0 comments No comments
  4. Anonymous
    2023-03-23T22:43:52+00:00

    Hi there! I hope you are well. My name is, Zadee. I'm an Independent Advisor and a Microsoft user like you.

    It's probably best to post this query to the sister forum MS Q & A where you're likely to get an answer. Programmers or IT professionals that use this type of software products (programming languages) like you do discuss these types of topics in there. Additionally, MS Community forum is more focused on supporting casual users that use Consumer Windows Versions.

    MS Q & A:

    https://learn.microsoft.com/en-us/answers/index...

    Thank you for your understanding.

    1 person found this answer helpful.
    0 comments No comments
  5. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more