chroma icon indicating copy to clipboard operation
chroma copied to clipboard

chromadb is not install successfuly why?

Open Krishnapro opened this issue 2 years ago • 6 comments

  • I'm trying to install pip install chromadb but 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 avatar Mar 26 '23 16:03 Krishnapro

@Krishnapro thank you for reporting this. can you let me know what version of Windows and Python you are running?

jeffchuber avatar Mar 29 '23 20:03 jeffchuber

I am using Windows 10 and Python - 3.9.6.

Krishnapro avatar Mar 30 '23 06:03 Krishnapro

  • I'm trying to install pip install chromadb but 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.

Capture

sergerdn avatar Mar 31 '23 11:03 sergerdn

I'm using jupyter notebook then why should I have to install c++?

Krishnapro avatar Apr 01 '23 13:04 Krishnapro

I'm using jupyter notebook then why should I have to install c++?

Due to the dependencies and builds required by the hnswlib library, you need to have certain C++ dependencies.

sergerdn avatar Apr 01 '23 14:04 sergerdn

This worked for me: sudo dnf install python3-devel cmake gcc-c++ pip install chromadb

RafaelRamosR avatar May 06 '23 01:05 RafaelRamosR

Closing this out as stale, I think the appropriate solutions are documented - you need a c++ toolchain!

HammadB avatar Aug 11 '23 18:08 HammadB