Create a virtual environment (optional)
When installing AG2 locally, we recommend using a virtual environment for the installation. This will ensure that the dependencies for AG2 are isolated from the rest of your system.- venv
- Conda
- Poetry
Create and activate:
To deactivate later, run:
Install AG2
AG2 requires Python version >= 3.9, < 3.14. It can be installed from pip:openai>=1 is required.