Skip to main content

Overview

The prime env install command installs environment packages from three sources:
  1. Environments Hub - Public and private environments from app.primeintellect.ai
  2. Local directory - Environments in your ./environments folder
  3. GitHub repository - Environments from the verifiers repo

Usage

Arguments

string
required
Environment identifier. Format depends on the source:
  • Hub: owner/name or owner/name@version
  • Local: env-name (looks in ./environments/)
  • Repo: Use with --from-repo flag

Options

string
default:"./environments"
Path to environments directory for local installations.Aliases: -p
flag
Install from the verifiers GitHub repository instead of Hub or local.Aliases: -r
string
default:"main"
Git branch to install from when using --from-repo.Aliases: -b

Installation Sources

Environments Hub

Install public or private environments from the Hub:
The Hub provides:
  • Versioned releases with semantic versioning
  • Private environments (requires authentication)
  • Automatic dependency resolution
  • Simple index URLs for pip-compatible installation

Local Directory

Install environments from your local workspace:
Local installation uses editable mode (pip install -e), so changes to the environment code take effect immediately without reinstalling.

GitHub Repository

Install environments directly from the verifiers GitHub repo:

Examples

Install from Hub

Output:

Install Local Environment

Output:

Install from Repository

Output:

Install Specific Version

How It Works

Hub Installation

  1. Queries the Environments Hub API for environment metadata
  2. Retrieves the simple index URL or direct wheel URL
  3. Installs using uv pip install with the appropriate index
  4. Invalidates Python import caches

Local Installation

  1. Locates the environment directory (e.g., ./environments/my_env)
  2. Installs in editable mode using uv pip install -e
  3. Environment becomes importable immediately

Repository Installation

  1. Constructs a git+https URL pointing to the environment subdirectory
  2. Installs directly from GitHub using uv pip install
  3. Branch can be specified with --branch

Verifying Installation

Check if an environment is installed:
Test the environment:

Private Environments

For private Hub environments, authentication is required:
  1. Option 1: Use prime env pull to download and install locally:
  2. Option 2: Configure authentication for the simple index URL (contact support for details)

Troubleshooting

Environment Not Found

Solution: Check that the environment directory exists and contains pyproject.toml.

Hub Environment Not Available

Solution:
  • Verify the owner/name spelling
  • Check if the environment is private (use prime env pull instead)
  • Ensure you’re using the correct version

Installation Failed

Solution:
  • Check that all dependencies are available
  • Verify your Python version meets requirements (>=3.10)
  • Try updating pip: uv pip install --upgrade pip

Module Import Errors

If the environment installs but can’t be imported:

Next Steps

After installation:
  1. Run an evaluation:
  2. Check environment defaults:
  3. Modify and test (for local installs):
    • Edit environment code
    • Re-run evaluation (changes take effect immediately)
  4. Publish to Hub (for your own environments):

Dependency Management

Environments can specify their own dependencies in pyproject.toml:
These dependencies are installed automatically when you install the environment.

Uninstalling

To remove an installed environment: