Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

User Local Installation

Install PyRIT directly into your Python environment for full control and easy integration with existing workflows.

Prerequisites

Install with pip or uv

pip install pyrit

Or with uv:

uv pip install pyrit

Install with Conda

If you prefer conda for managing environments:

conda create -y -n pyrit python=3.11
conda activate pyrit
pip install pyrit

Matching Notebooks to Your Version

  1. Check your installed version:

    pip freeze | grep pyrit

    Or in Python:

    import pyrit
    print(pyrit.__version__)
  2. 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/doc

    • The automatically cloned notebooks from the main branch may not match your installed version

    • This website documentation shows the latest development version (main branch).

  3. 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.