Skip to content

Latest commit

 

History

History
34 lines (25 loc) · 1.08 KB

README.md

File metadata and controls

34 lines (25 loc) · 1.08 KB

pvenv

Manages all python venvs in one place. Pretty much like pipenv or poetry, but using just venv and pip.

Usage

Usage: pvenv [-n|--name <venv_name>] <command> [arg...]

  -n|--name <venv_name>  Set a custom venv name. Default: unique name based on the name of the
                         current directory.

Commands:
  use [python] [arg...]  Create venv using the provided python executable (if venv doesn't exist)
                         and activate it. If no python executable is provided, defaults to
                         python3. Any additional arguments given are passed to the venv creation
                         script. See python3 -m venv --help
  ls                     List path of venv, if venv exists.
  rm                     Remove venv.

Settings

By default, all venvs are created under ${HOME}/.venvs. This path can be customized with:

PVENV_HOME=/path/to/venvs