Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions Doc/library/venv.rst
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,23 @@ When used from within a virtual environment, common installation tools such as
`pip`_ will install Python packages into a virtual environment
without needing to be told to do so explicitly.

A virtual environment is:

* Used to contain a specific Python interpreter and software libraries and
binaries which are needed to support a project (library or application).

* Contained in a directory, conventionally either named ``venv`` or ``.venv`` in
the project directory, or under a container directory for lots of virtual
environments, such as ``~/.virtualenvs``.

* Not checked into source control systems such as Git, Mercurial etc.

* Considered as disposable -- it should be simple to delete and recreate it from
scratch. You don't place any project code in the environment

* Not considered as movable or copyable -- you just create a new environment in
the target location.

See :pep:`405` for more background on Python virtual environments.

.. seealso::
Expand Down