python virtual environments

requirements

method

  1. install python and add it to your PATH
  2. create a virtual environment
  3. python -m venv venv
  4. activate the virtual environment
  5. linux / osx

    source venv/bin/activate

    windows

    venv\Scripts\Activate.ps1
  6. in the activated state, you can install modules
  7. pip install <module>
    and run scripts
    python script.py
  8. once finished, deactivate the virtual environment
  9. deactivate