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.Create and activate:
To deactivate later, run:
Install AG2
AG2 requires Python version >= 3.9, < 3.14. It can be installed from pip:If you have been using oras
autogen
or ag2
, all you need to do is upgrade it using:autogen
and ag2
are aliases for the same PyPI package.openai>=1
is required.