# Fail to install library

**URL:** <https://community.crewai.com/t/fail-to-install-library/2796>\
**Category:** CrewAI Community Support\
**Created:** [January 14, 2025, 8:11am UTC](https://community.crewai.com/t/fail-to-install-library/2796 "2025-01-14T08:11:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Raunakgola](https://avatars.discourse-cdn.com/v4/letter/r/c67d28/32.png) [@Raunakgola](https://community.crewai.com/u/Raunakgola)\
**Post date:** [January 14, 2025, 8:11am UTC](https://community.crewai.com/t/fail-to-install-library/2796/1 "2025-01-14T08:11:04Z")

</div>

While installing the crewai Library “pip install crewai” in pycharm it gives me this error

Building wheels for collected packages: chroma-hnswlib  
Building wheel for chroma-hnswlib (pyproject.toml) … error  
error: subprocess-exited-with-error

× Building wheel for chroma-hnswlib (pyproject.toml) did not run successfully.  
│ exit code: 1  
╰─\> [5 lines of output]  
running bdist\_wheel  
running build  
running build\_ext  
building ‘hnswlib’ extension  
error: Microsoft Visual C++ 14.0 or greater is required. Get it with “Microsoft C++ Build Tools”: [Microsoft C++ Build Tools - Visual Studio](https://visualstudio.microsoft.com/visual-cpp-build-tools/)  
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.  
ERROR: Failed building wheel for chroma-hnswlib  
Failed to build chroma-hnswlib  
ERROR: Could not build wheels for chroma-hnswlib, which is required to install pyproject.toml-based projects
