Improve Git Bash virtual environment activation docs
This commit is contained in:
parent
7374c85dde
commit
d5b96f8fa7
1 changed files with 9 additions and 1 deletions
|
|
@ -74,7 +74,8 @@ Virtual environments are independent groups of Python libraries, one for each
|
||||||
project. Packages installed for one project will not affect other projects or
|
project. Packages installed for one project will not affect other projects or
|
||||||
the operating system's packages.
|
the operating system's packages.
|
||||||
|
|
||||||
Python comes bundled with the :mod:`venv` module to create virtual
|
Python comes bundled with the :mod:`venv`
|
||||||
|
module to create virtual
|
||||||
environments.
|
environments.
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -125,6 +126,13 @@ Before you work on your project, activate the corresponding environment:
|
||||||
|
|
||||||
> .venv\Scripts\activate
|
> .venv\Scripts\activate
|
||||||
|
|
||||||
|
.. note::
|
||||||
|
|
||||||
|
If you are using Git Bash on Windows, activate the
|
||||||
|
virtual environment with:
|
||||||
|
|
||||||
|
``source .venv/Scripts/activate``
|
||||||
|
|
||||||
Your shell prompt will change to show the name of the activated
|
Your shell prompt will change to show the name of the activated
|
||||||
environment.
|
environment.
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue