Skip to content

Installation

Check the prerequisites before installing. Use published packages for normal use; a source checkout is only needed for development.

For Python integration, create and activate a virtual environment using Python 3.11, 3.12, or 3.13. Confirm python --version selects one of these versions. On macOS or Linux:

Terminal window
python -m venv .venv
source .venv/bin/activate

On Windows PowerShell, activate it with .venv\Scripts\Activate.ps1 instead. Install the published translation package and check dependency consistency:

Terminal window
python -m pip install r2x-reeds-to-sienna
python -m pip check
python -m pip show r2x-reeds-to-sienna

pip check should report no broken requirements; pip show identifies the installed version and location. This environment is separate from the CLI’s managed environment. Continue with the Python workflow.

After installing r2x-cli and uv, verify the CLI and prepare its managed runtime:

Terminal window
r2x --version
r2x python install
r2x python show

Use the Python version supported by your CLI binary. r2x python show identifies the environment that will load plugins. Installing a plugin changes this managed environment and its plugin manifest.

For the first CLI pipeline, install the Sienna parser and exporter:

Terminal window
r2x install r2x-sienna
r2x list r2x-sienna

Confirm that the list includes sienna-parser and sienna-exporter, then inspect the parser options:

Terminal window
r2x run sienna-parser --help

For translation, install the package matching your direction:

DirectionPublished package
ReEDS → PLEXOSr2x-reeds-to-plexos
ReEDS → Siennar2x-reeds-to-sienna
PLEXOS → Siennar2x-plexos-to-sienna
Sienna → PLEXOSr2x-sienna-to-plexos

For example:

Terminal window
r2x install r2x-reeds-to-sienna
r2x list r2x-reeds-to-sienna

Expect reeds-to-sienna in the list. Follow the ReEDS CLI tutorial to install and verify the source parser and target exporter as well. Use compatible parser, translator, and exporter versions; the translation step does not read source data by itself.

Once plugin discovery succeeds, follow the first CLI pipeline to initialize a workspace, preview execution, export a small model, and inspect the saved system. The walkthrough includes expected files and a ten-bus inspection result.

If a command is missing or a plugin cannot be discovered, check the selected runtime and installed packages using Troubleshooting.