Docs

Installing Python Virtual Environment

Windows

  1. Open an elevated PowerShell session and navigate to the robustest folder.

  2. Install pip (if not already available):

    python -m pip install --upgrade pip
    

    If you encounter permission errors:

    pip install --user --upgrade pip
    
  3. Install virtualenv and create the virtual environment:

    pip install --user virtualenv
    py -m virtualenv virtualenv
    
  4. Activate the virtual environment:

    .\virtualenv\Scripts\activate
    

    If you see an error about running scripts, run the following first:

    Set-ExecutionPolicy RemoteSigned
    

    Type A and press Enter, then re-run the activate command.

  5. Install dependencies:

    pip install -r requirements.txt
    

    The requirements.txt file is located in the robustest folder.

  6. Deactivate when done:

    deactivate
    
  7. Set the VIRT_ENV environment variable:

    1. Search for env in the Windows search bar → Edit the system environment variables.
    2. Click Environment VariablesNew under User Variables.
    3. Variable name: VIRT_ENV
    4. Variable value: C:\Users\<username>\robustest\virtualenv
  8. Inside ~/robustest/virtualenv, rename the Scripts folder to bin.


Mac and Linux

  1. Open Terminal and navigate to the robustest folder.

  2. Install pip and create the virtual environment:

    python -m pip install --upgrade pip
    pip install virtualenv
    virtualenv virtualenv
    
  3. Activate the virtual environment:

    source ~/robustest/virtualenv/bin/activate
    
  4. Install dependencies:

    pip install -r requirements.txt
    
  5. Deactivate when done:

    deactivate