From: Elena Oat Date: Sat, 28 Jul 2018 12:58:05 +0000 (-0700) Subject: bpo-24356: Specify which Python binary will be used with venv (GH-6589) X-Git-Tag: v3.8.0a1~1292 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=50326927465c3f5c6c0168fc43310c8e97db0a47;p=thirdparty%2FPython%2Fcpython.git bpo-24356: Specify which Python binary will be used with venv (GH-6589) --- diff --git a/Doc/library/venv.rst b/Doc/library/venv.rst index b85d642ee61c..7058d3a54b7f 100644 --- a/Doc/library/venv.rst +++ b/Doc/library/venv.rst @@ -17,12 +17,17 @@ The :mod:`venv` module provides support for creating lightweight "virtual environments" with their own site directories, optionally isolated from system -site directories. Each virtual environment has its own Python binary (allowing -creation of environments with various Python versions) and can have its own -independent set of installed Python packages in its site directories. +site directories. Each virtual environment has its own Python binary (which +matches the version of the binary that was used to create this environment) and +can have its own independent set of installed Python packages in its site +directories. See :pep:`405` for more information about Python virtual environments. +.. seealso:: + + `Python Packaging User Guide: Creating and using virtual environments + `__ Creating virtual environments diff --git a/Doc/using/venv-create.inc b/Doc/using/venv-create.inc index 4c7795ad8019..272090d083a5 100644 --- a/Doc/using/venv-create.inc +++ b/Doc/using/venv-create.inc @@ -20,11 +20,6 @@ directory is specified, it will be re-used. .. versionchanged:: 3.5 The use of ``venv`` is now recommended for creating virtual environments. -.. seealso:: - - `Python Packaging User Guide: Creating and using virtual environments - `__ - .. highlight:: none On Windows, invoke the ``venv`` command as follows::