How to install crewai on windows 11

Hi there,

I was demo-ing crewai to fellow masters students in my study group and I followed the same installation instructions with no issues in my macOS.

But one of the students uses windows and they had an issue.

I manage to replicate the issue and I am now posting it here for help.

My python version is 3.12.8
My windows is 11 home

the command I use is

pip install crewai crewai-tools

I get the following error

Downloading hpack-4.0.0-py3-none-any.whl (32 kB)
Downloading hyperframe-6.0.1-py3-none-any.whl (12 kB)
Building wheels for collected packages: chroma-hnswlib, docx2txt, pypika
  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": 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
  Building wheel for docx2txt (pyproject.toml) ... done
  Created wheel for docx2txt: filename=docx2txt-0.8-py3-none-any.whl size=3971 sha256=169b23a79661f85d9712955674ca8edd672835b53ed316cc6590c0275b486315
  Stored in directory: c:\users\kimsia\appdata\local\pip\cache\wheels\6f\81\48\001bbc0109c15e18c009eee300022f42d1e070e54f1d00b218
  Building wheel for pypika (pyproject.toml) ... done
  Created wheel for pypika: filename=PyPika-0.48.9-py2.py3-none-any.whl size=53834 sha256=13798756b007562a39eb4495e04628c27dedba8b0cd4801e2fd1ad7ea1be947d
  Stored in directory: c:\users\kimsia\appdata\local\pip\cache\wheels\d5\3d\69\8d68d249cd3de2584f226e27fd431d6344f7d70fd856ebd01b
Successfully built docx2txt pypika
Failed to build chroma-hnswlib
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (chroma-hnswlib)

Is this the right package to install for the C++?

The C++ build tools is only installable on x86 so I didn’t continue forward on my own machine. I used parallels desktop to run windows on my Mac

I can confirm that this c++ build tools was installed on the windows user machine. They subsequently met with metadata generation failed errors

I googled and found this resource How to Fix "Error: Metadata Generation Failed" in Python - GeeksforGeeks will this work for them?