mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
[doc] Document VIRTUAL_ENV environment variable (GH-21970)
This commit is contained in:
parent
ea5a6363c3
commit
3584d4b64a
1 changed files with 4 additions and 0 deletions
|
@ -126,6 +126,10 @@ directory containing the virtual environment):
|
|||
| | PowerShell | PS C:\\> <venv>\\Scripts\\Activate.ps1 |
|
||||
+-------------+-----------------+-----------------------------------------+
|
||||
|
||||
When a virtual environment is active, the :envvar:`VIRTUAL_ENV` environment
|
||||
variable is set to the path of the virtual environment. This can be used to
|
||||
check if one is running inside a virtual environment.
|
||||
|
||||
You don't specifically *need* to activate an environment; activation just
|
||||
prepends the virtual environment's binary directory to your path, so that
|
||||
"python" invokes the virtual environment's Python interpreter and you can run
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue