Improve Git Bash virtual environment activation docs

This commit is contained in:
Harsh Vardhan Singh 2026-05-08 15:06:32 +05:30
parent 7374c85dde
commit d5b96f8fa7

View file

@ -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
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.
@ -125,6 +126,13 @@ Before you work on your project, activate the corresponding environment:
> .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
environment.