Can you please let me know how I can overcome this error while doing a
pip install chromadb
(in my python venv)
....
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for chroma-hnswlib
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (chroma-hnswlib)
P.S. I even tried doing a
pip install chroma-hnswlib
That fails as well.
Never mind. I resolved the issue myself doing the following: -
P.S. I have a Windows 11 laptop
- Uninstalled all the traces of Visual Studio (if you have Visual Studio Code, not a problem, you can leave it be) - just the Microsoft Visual Studio suite of products especially I had versions from 2019 onwards. So, uninstalled everything up to now
- Restarted my laptop
- Next downloaded the Microsoft Visual Studio 2022 - Community version (as I wanted only the free one)
- Installed the same (complete installation)
- Restarted my laptop
- Opened up the code base for Lesson 3 exercise in VSCode, and pip installed chromadb and the install went just fine. No errors or even warnings.
- I am able to complete Lesson 3 exercise.
2 Likes