Install PyRIT directly into your Python environment for full control and easy integration with existing workflows.
Prerequisites¶
Python 3.10, 3.11, 3.12, or 3.13 (check with
python --version)
Install with pip or uv¶
pip install pyritOr with uv:
uv pip install pyritInstall with Conda¶
If you prefer conda for managing environments:
conda create -y -n pyrit python=3.11
conda activate pyrit
pip install pyritMatching Notebooks to Your Version¶
Check your installed version:
pip freeze | grep pyritOr in Python:
import pyrit print(pyrit.__version__)Match notebooks to your version:
If using a release version (e.g.,
0.9.0), download notebooks from the corresponding release branch:https://github.com/Azure/PyRIT/tree/releases/v0.9.0/docThe automatically cloned notebooks from the
mainbranch may not match your installed versionThis website documentation shows the latest development version (
mainbranch).
If you installed from source: The notebooks in your cloned repository will already match your code version.
Next Step: Configure PyRIT¶
After installing, configure your AI endpoint credentials.