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

facing issue in Installation of Chromadb #39

Open
mr-rakesh-ranjan opened this issue Aug 30, 2023 · 1 comment
Open

facing issue in Installation of Chromadb #39

mr-rakesh-ranjan opened this issue Aug 30, 2023 · 1 comment

Comments

@mr-rakesh-ranjan
Copy link

Hi Everyone, I got this error while trying this locally.

Error:
Building wheels for collected packages: chroma-hnswlib
Building wheel for chroma-hnswlib (PEP 517) ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Users\RakeshRanjanKumar\chatgpt-retrieval\v_env\Scripts\python.exe' 'C:\Users\RakeshRanjanKumar\chatgpt-retrieval\v_env\lib\site-packages\pip_vendor\pep517\in_process_in_process.py' build_wheel 'C:\Users\RAKESH~1\AppData\Local\Temp\tmpz19tp3tl'
cwd: C:\Users\RakeshRanjanKumar\AppData\Local\Temp\pip-install-gqobnf5q\chroma-hnswlib_57412d3097c849e4bd231978707c330e
Complete output (12 lines):
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.37.32822\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -IC:\Users\RakeshRanjanKumar\AppData\Local\Temp\pip-build-env-927jtnt0\overlay\Lib\site-packages\pybind11\include -IC:\Users\RakeshRanjanKumar\AppData\Local\Temp\pip-build-env-927jtnt0\overlay\Lib\site-packages\numpy\core\include -I./hnswlib/ -IC:\Users\RakeshRanjanKumar\chatgpt-retrieval\v_env\include -IC:\Users\RakeshRanjanKumar\AppData\Local\Programs\Python\Python310\include -IC:\Users\RakeshRanjanKumar\AppData\Local\Programs\Python\Python310\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.37.32822\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.2\"
bindings.cpp
C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.37.32822\include\yvals.h(21): 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.37.32822\bin\HostX86\x64\cl.exe' failed with exit code 2

ERROR: Failed building wheel for chroma-hnswlib
Failed to build chroma-hnswlib
ERROR: Could not build wheels for chroma-hnswlib which use PEP 517 and cannot be installed directly
WARNING: You are using pip version 21.2.3; however, version 23.2.1 is available.
You should consider upgrading via the 'C:\Users\RakeshRanjanKumar\chatgpt-retrieval\v_env\Scripts\python.exe -m pip install --upgrade pip' command.

I'm using Python 3.10.0 still facing this issue. Please help me out.

@Junaid-Nazir-828
Copy link

You need to have Microsoft C++ build tools to install Chromadb. You can download it from here : https://visualstudio.microsoft.com/visual-cpp-build-tools/ . Moreover you can follow these steps to ease your installations : 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

2 participants