mirror of
https://github.com/python/cpython.git
synced 2025-07-30 14:44:10 +00:00
Closes #23357: Updated documentation on creating venvs.
This commit is contained in:
commit
d005090e01
1 changed files with 7 additions and 4 deletions
|
@ -21,15 +21,15 @@ subdirectory (on Windows, this is ``Lib\site-packages``).
|
||||||
On Windows, you may have to invoke the ``pyvenv`` script as follows, if you
|
On Windows, you may have to invoke the ``pyvenv`` script as follows, if you
|
||||||
don't have the relevant PATH and PATHEXT settings::
|
don't have the relevant PATH and PATHEXT settings::
|
||||||
|
|
||||||
c:\Temp>c:\Python33\python c:\Python33\Tools\Scripts\pyvenv.py myenv
|
c:\Temp>c:\Python35\python c:\Python35\Tools\Scripts\pyvenv.py myenv
|
||||||
|
|
||||||
or equivalently::
|
or equivalently::
|
||||||
|
|
||||||
c:\Temp>c:\Python33\python -m venv myenv
|
c:\Temp>c:\Python35\python -m venv myenv
|
||||||
|
|
||||||
The command, if run with ``-h``, will show the available options::
|
The command, if run with ``-h``, will show the available options::
|
||||||
|
|
||||||
usage: pyvenv [-h] [--system-site-packages] [--symlinks] [--clear]
|
usage: venv [-h] [--system-site-packages] [--symlinks] [--clear]
|
||||||
[--upgrade] [--without-pip] ENV_DIR [ENV_DIR ...]
|
[--upgrade] [--without-pip] ENV_DIR [ENV_DIR ...]
|
||||||
|
|
||||||
Creates virtual Python environments in one or more target directories.
|
Creates virtual Python environments in one or more target directories.
|
||||||
|
@ -53,6 +53,9 @@ The command, if run with ``-h``, will show the available options::
|
||||||
--without-pip Skips installing or upgrading pip in the virtual
|
--without-pip Skips installing or upgrading pip in the virtual
|
||||||
environment (pip is bootstrapped by default)
|
environment (pip is bootstrapped by default)
|
||||||
|
|
||||||
|
Depending on how the ``venv`` functionality has been invoked, the usage message
|
||||||
|
may vary slightly, e.g. referencing ``pyvenv`` rather than ``venv``.
|
||||||
|
|
||||||
.. versionchanged:: 3.4
|
.. versionchanged:: 3.4
|
||||||
Installs pip by default, added the ``--without-pip`` and ``--copies``
|
Installs pip by default, added the ``--without-pip`` and ``--copies``
|
||||||
options
|
options
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue