venv

Commands

  • create new virtual environment: python -m venv .venv
  • create new virtual environment with name: python -m venv --prompt <name> .venv
  • create new virtual environment with name (use copies rather than symlinks): python -m venv --copies --prompt <name> .venv
  • activate env.: source .venv/bin/activate
Last modified August 26, 2023: Update venv.md (32868ea)