Install Python Version

CrewAI requires Python version ≥ 3.10 and < 3.14. Use pyenv to install and manage it.

Confirm it is active:

which python

This should point to your pyenv shim and report Python 3.11.x

/Users/david/.pyenv/shims/python

Check your current Python version:

python --version

Install Python 3.11.9 if needed:

pyenv install 3.11.9 pyenv global 3.11.9

I'm using a specific pyenv set up for Open Interpreter:

pyenv activate ai-env python --version

Which gives:

Python 3.12.3