From 00b97526e753614e762cad9128df5df48cb0fd54 Mon Sep 17 00:00:00 2001 From: zadevhub <138465437+zadevhub@users.noreply.github.com> Date: Tue, 2 Dec 2025 05:09:25 +0000 Subject: [PATCH] =?utf8?q?=F0=9F=93=9D=20Add=20tip=20on=20how=20to=20insta?= =?utf8?q?ll=20`pip`=20in=20case=20of=20`No=20module=20named=20pip`=20erro?= =?utf8?q?r=20in=20`virtual-environments.md`=20(#14211)?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- docs/en/docs/virtual-environments.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/docs/en/docs/virtual-environments.md b/docs/en/docs/virtual-environments.md index e9b0a9fc45..c02e43ab91 100644 --- a/docs/en/docs/virtual-environments.md +++ b/docs/en/docs/virtual-environments.md @@ -242,6 +242,26 @@ $ python -m pip install --upgrade pip +/// tip + +Sometimes, you might get a **`No module named pip`** error when trying to upgrade pip. + +If this happens, install and upgrade pip using the command below: + +
+ +```console +$ python -m ensurepip --upgrade + +---> 100% +``` + +
+ +This command will install pip if it is not already installed and also ensures that the installed version of pip is at least as recent as the one available in `ensurepip`. + +/// + ## Add `.gitignore` { #add-gitignore } If you are using **Git** (you should), add a `.gitignore` file to exclude everything in your `.venv` from Git. -- 2.47.3