crewAI
crewAI copied to clipboard
[BUG] - Failed to build `chroma-hnswlib==0.7.6` during installation
Description
Bug during crewai installation.
Environment:
- Windows 11
- Python 3.12.10
- uv 0.6.17
Steps to Reproduce
Run uv tool install crewai within the environment.
Expected behavior
crewai installed successfully, got error instead.
Screenshots/Code snippets
$ uv tool install crewai
Resolved 148 packages in 229ms
× Failed to build `chroma-hnswlib==0.7.6`
├─▶ The build backend returned an error
╰─▶ Call to `setuptools.build_meta.build_wheel` failed (exit code: 1)
[stdout]
running bdist_wheel
running build
running build_ext
building 'hnswlib' extension
"C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\bin\HostX86\x64\cl.exe" /c /nologo /O2
/W3 /GL /DNDEBUG /MD -IC:\Users\Administrator\AppData\Local\uv\cache\builds-v0\.tmpEIxIg1\Lib\site-packages\pybind11\include
-IC:\Users\Administrator\AppData\Local\uv\cache\builds-v0\.tmpEIxIg1\Lib\site-packages\numpy\_core\include -I./hnswlib/
-IC:\Users\Administrator\AppData\Local\uv\cache\builds-v0\.tmpEIxIg1\include -IC:\Users\Administrator\AppData\Roaming\uv\python\cpython-3.12.10-windows-x86_64-none\include
-IC:\Users\Administrator\AppData\Roaming\uv\python\cpython-3.12.10-windows-x86_64-none\Include "-IC:\Program Files\Microsoft Visual
Studio\2022\Community\VC\Tools\MSVC\14.41.34120\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\VS\include" /EHsc /Tp./python_bindings/bindings.cpp
/Fobuild\temp.win-amd64-cpython-312\Release\python_bindings\bindings.obj /EHsc /openmp /O2 /DVERSION_INFO=\\\"0.7.6\\\"
bindings.cpp
C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\include\cfloat(10): fatal error C1083: Cannot open include file: 'float.h': No such file or directory
[stderr]
error: command 'C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.41.34120\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
hint: This usually indicates a problem with the package or the build environment.
help: `chroma-hnswlib` (v0.7.6) was included because `crewai` (v0.114.0) depends on `chromadb` (v1.0.7) which depends on `chroma-hnswlib`
Operating System
Windows 11
Python Version
3.12
crewAI Version
v0.114.0
crewAI Tools Version
Don't know
Virtual Environment
Venv
Evidence
Possible Solution
Don't know
Additional context
Don't have any additional context
try using python 3.11
Hi Henrique,
Have you tried downloading and installing the Visual Studio Installer and making sure that you have selected the "Desktop development with C++" option?
Hi @palaemezie ! I did it, and solved the issue.
I was wondering if that could be documented for Windows users...
@HenriqueAJNB I’d love to see a PR from you describing it! feel free to collaborate! 😊
Hi @lucasgomide, just did that at PR https://github.com/crewAIInc/crewAI/pull/2764
Hi @HenriqueAJNB,
I'm glad to hear that the solution worked out for you. I apologise for not getting back to you sooner, but the email was flagged as spam.
Happy coding!