chromadb is not install successfuly why?
- I'm trying to install
pip install chromadbbut it's not installing successfully. I'm getting errors like below 👇
error: subprocess-exited-with-error
Building wheel for hnswlib (pyproject.toml) did not run successfully.
exit code: 1
[12 lines of output]
running bdist_wheel
running build
running build_ext
building 'hnswlib' extension
creating build
creating build\temp.win-amd64-cpython-310
creating build\temp.win-amd64-cpython-310\Release
creating build\temp.win-amd64-cpython-310\Release\python_bindings
"C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.35.32215\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -IC:\Users\krishna\AppData\Local\Temp\pip-build-env-b1kbasml\overlay\Lib\site-packages\pybind11\include -IC:\Users\krishna\AppData\Local\Temp\pip-build-env-b1kbasml\overlay\Lib\site-packages\numpy\core\include -I./hnswlib/ -IC:\ProgramData\anaconda3\include -IC:\ProgramData\anaconda3\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.35.32215\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.35.32215\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\VS\include" /EHsc /Tp./python_bindings/bindings.cpp /Fobuild\temp.win-amd64-cpython-310\Release\./python_bindings/bindings.obj /EHsc /openmp /O2 /DVERSION_INFO=\\\"0.7.0\\\"
bindings.cpp
C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.35.32215\include\yvals.h(17): fatal error C1083: Cannot open include file: 'crtdbg.h': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.35.32215\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for hnswlib
ERROR: Could not build wheels for hnswlib, which is required to install pyproject.toml-based projects
@Krishnapro thank you for reporting this. can you let me know what version of Windows and Python you are running?
I am using Windows 10 and Python - 3.9.6.
- I'm trying to install
pip install chromadbbut it's not installing successfully.
Make sure to select the options for installing the C++ development tools during the installation process of MS Visual Studio.
I'm using jupyter notebook then why should I have to install c++?
I'm using
jupyter notebookthen why should I have to installc++?
Due to the dependencies and builds required by the hnswlib library, you need to have certain C++ dependencies.
This worked for me:
sudo dnf install python3-devel cmake gcc-c++
pip install chromadb
Closing this out as stale, I think the appropriate solutions are documented - you need a c++ toolchain!