LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

venv

Create Python virtual environments

TLDR

Create virtual environment
$ python -m venv [venv]
copy
Create with system packages
$ python -m venv --system-site-packages [venv]
copy
Activate (bash/zsh)
$ source [venv]/bin/activate
copy
Activate (fish)
$ source [venv]/bin/activate.fish
copy
Deactivate
$ deactivate
copy
Clear environment
$ python -m venv --clear [venv]
copy

SYNOPSIS

python -m venv [--system-site-packages] [--clear] path

DESCRIPTION

venv creates lightweight Python virtual environments that isolate project dependencies from the system Python installation. Each virtual environment has its own site-packages directory and can have different versions of packages installed without conflicts.The module is part of the Python standard library and requires no additional installation. Activation scripts modify the shell's PATH to use the virtual environment's Python and pip, and deactivate returns to the system environment.

PARAMETERS

--system-site-packages

Include system packages.
--clear
Clear existing.
--without-pip
Don't install pip.
--upgrade
Upgrade scripts.
--prompt TEXT
Custom prompt.

CAVEATS

Python 3.3+. Use virtualenv for older. Path specific.

HISTORY

venv was added to Python 3.3 standard library as the recommended way to create virtual environments.

SEE ALSO

virtualenv(1), pip(1), python(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid