Unable to install crewAI on Mac OS Sequoia

Hi all,

I am on a Macbook M1, OS version Sequoia. Until now I am using crewAI using google colab. Now I am trying to install crewAI locally and am running into errors.

My python version is 3.12.

ip install chromadb
Requirement already satisfied: chromadb in /opt/anaconda3/lib/python3.12/site-packages (0.5.13)
Requirement already satisfied: build>=1.0.3 in /opt/anaconda3/lib/python3.12/site-packages (from chromadb) (1.2.2.post1)
Requirement already satisfied: pydantic>=1.9 in /opt/anaconda3/lib/python3.12/site-packages (from chromadb) (2.5.3)
Requirement already satisfied: chroma-hnswlib==0.7.6 in /opt/anaconda3/lib/python3.12/site-packages (from chromadb) (0.7.6)

Requirement already satisfied: filelock>=3.8.0 in /opt/anaconda3/lib/python3.12/site-packages (from cachecontrol[filecache]<0.15.0,>=0.14.0->poetry<2.0.0,>=1.8.3->crewai) (3.13.1)
Collecting chroma-hnswlib==0.7.3 (from chromadb<0.5.0,>=0.4.24->embedchain<0.2.0,>=0.1.114->crewai)
Using cached chroma-hnswlib-0.7.3.tar.gz (31 kB)
Installing build dependencies … done
Getting requirements to build wheel … error
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [19 lines of output]
Traceback (most recent call last):
File “/opt/anaconda3/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py”, line 353, in
main()
File “/opt/anaconda3/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py”, line 335, in main
json_out[‘return_val’] = hook(**hook_input[‘kwargs’])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/opt/anaconda3/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py”, line 118, in get_requires_for_build_wheel
return hook(config_settings)
^^^^^^^^^^^^^^^^^^^^^
File “/private/var/folders/79/wqm5vjx90hb2wkyjghl5q7w00000gn/T/pip-build-env-so82y1au/overlay/lib/python3.12/site-packages/setuptools/build_meta.py”, line 332, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/private/var/folders/79/wqm5vjx90hb2wkyjghl5q7w00000gn/T/pip-build-env-so82y1au/overlay/lib/python3.12/site-packages/setuptools/build_meta.py”, line 302, in _get_build_requires
self.run_setup()
File “/private/var/folders/79/wqm5vjx90hb2wkyjghl5q7w00000gn/T/pip-build-env-so82y1au/overlay/lib/python3.12/site-packages/setuptools/build_meta.py”, line 318, in run_setup
exec(code, locals())
File “”, line 73, in
File “”, line 90, in BuildExt
ValueError: list.remove(x): x not in list
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.
(base) macbookair:~ ppraveen$
(base) macbookair:~ ppraveen$ which python
/opt/anaconda3/bin/python
(base) macbookair:~ ppraveen$ python
Python 3.12.4 | packaged by Anaconda, Inc. | (main, Jun 18 2024, 10:07:17) [Clang 14.0.6 ] on darwin
Type “help”, “copyright”, “credits” or “license” for more information.

Has anyone else run into this? Is there a specific python version to use?

Hey Praveen,

I haven’t had this issue, but I think you might have better luck running Python 3.11.

When I have issues with my crews, I just use the crewAI GPT to troubleshoot.

That may be a good place to start if things don’t work out.

1 Like

Also make sure you are in a clean enviroenment

Hi All, Thank you for the updates. I downgraded to Python 3.11 and now it works.

Python 3.12.6 was the culprit.

Best,
Praveen.

2 Likes