mirror of https://github.com/python/cpython
bpo-24356: Specify which Python binary will be used with venv (GH-6589)
This commit is contained in:
parent
8fe9eed937
commit
5032692746
|
@ -17,12 +17,17 @@
|
||||||
|
|
||||||
The :mod:`venv` module provides support for creating lightweight "virtual
|
The :mod:`venv` module provides support for creating lightweight "virtual
|
||||||
environments" with their own site directories, optionally isolated from system
|
environments" with their own site directories, optionally isolated from system
|
||||||
site directories. Each virtual environment has its own Python binary (allowing
|
site directories. Each virtual environment has its own Python binary (which
|
||||||
creation of environments with various Python versions) and can have its own
|
matches the version of the binary that was used to create this environment) and
|
||||||
independent set of installed Python packages in its site directories.
|
can have its own independent set of installed Python packages in its site
|
||||||
|
directories.
|
||||||
|
|
||||||
See :pep:`405` for more information about Python virtual environments.
|
See :pep:`405` for more information about Python virtual environments.
|
||||||
|
|
||||||
|
.. seealso::
|
||||||
|
|
||||||
|
`Python Packaging User Guide: Creating and using virtual environments
|
||||||
|
<https://packaging.python.org/installing/#creating-virtual-environments>`__
|
||||||
|
|
||||||
|
|
||||||
Creating virtual environments
|
Creating virtual environments
|
||||||
|
|
|
@ -20,11 +20,6 @@ directory is specified, it will be re-used.
|
||||||
.. versionchanged:: 3.5
|
.. versionchanged:: 3.5
|
||||||
The use of ``venv`` is now recommended for creating virtual environments.
|
The use of ``venv`` is now recommended for creating virtual environments.
|
||||||
|
|
||||||
.. seealso::
|
|
||||||
|
|
||||||
`Python Packaging User Guide: Creating and using virtual environments
|
|
||||||
<https://packaging.python.org/installing/#creating-virtual-environments>`__
|
|
||||||
|
|
||||||
.. highlight:: none
|
.. highlight:: none
|
||||||
|
|
||||||
On Windows, invoke the ``venv`` command as follows::
|
On Windows, invoke the ``venv`` command as follows::
|
||||||
|
|
Loading…
Reference in New Issue