pip is designed to upgrade python packages and not to upgrade python itself. pip shouldn't try to upgrade python when you ask it to do so.

Don't type pip install python but use an installer instead.

Answer from Zeugma on Stack Overflow
🌐
DataCamp
datacamp.com › tutorial › pip-upgrade-python
How to Upgrade Pip and Python in Windows, MacOS, and Linux | DataCamp
December 23, 2025 - To download the latest Python installer for Windows, visit the official Python website and click on the Download Python button. This will allow you to obtain the most recent version of the Python installer.
Discussions

How do i update python using pip? Kindly give a PROPER example.
You don't. pip is a manager for Python packages, but Python itself isn't a package[1]. On Linux, use your distro's package manager. On Windows, use an installer that you download off of python.org. [1] Contrast with leiningen, which does distribute its own language as a package. More on reddit.com
🌐 r/learnprogramming
6
0
May 1, 2022
any idea how to update python PIP on a windows box? - Stack Overflow
Find centralized, trusted content ... you use most. Learn more about Collectives ... Bring the best of human thought and AI automation together at your work. Explore Stack Internal ... pip install --upgrade pip doesn't work because the windows FS is brain damaged and won't let you delete an open file. I've tried setting my environment to the virtualenv that I want to update and then running from a different pip, but that fails with: (jm) E:\python\jm>c:\Pyt... More on stackoverflow.com
🌐 stackoverflow.com
Pip upgrade to 22.3 windows10 - Packaging - Discussions on Python.org
Hi all, I’m trying to upgrade my pip version. I’m running in cmd promtp as admin and my error is this When I go to my python 3.9 directory, I don’t seem to have a .py script to run the upgrade. When I’m in cmd prompt and go to python, my version comes up as “C:\WINDOWS\system32>python ... More on discuss.python.org
🌐 discuss.python.org
0
November 6, 2022
How do I upgrade the Python installation in Windows 10? - Stack Overflow
You can use pyenv. It let you easily switch between all versions of python. ... I was able to execute PowerShell with the following command and python upgraded with no issue. python -m pip install --upgrade pip please see image More on stackoverflow.com
🌐 stackoverflow.com
🌐
GeeksforGeeks
geeksforgeeks.org › python › how-to-upgrade-pip-and-python-on-windows-linux-and-macos
How to Upgrade Pip and Python on Windows, Linux, and MacOS? - GeeksforGeeks
January 30, 2026 - In case your system needs to provide ... in the command prompt: ... For upgrading Python, please visit the official website of Python and download its latest version....
🌐
RS Blog
reneshbedre.com › blog › install-upgrade-pip-windows-mac-linux.html
pip and conda to install and upgrade Python packages
March 26, 2023 - For example, to install the 1.22.0 version of NumPy, use the command as pip install numpy==1.22.0 ... # Windows, Linux, and macOS # using pip (replace bioinfokit with required python package name) pip install bioinfokit==2.0.0 # using Python ...
🌐
ActiveState
activestate.com › home › resources › quick read › how to update all python packages
How to Update All Python Packages - ActiveState
January 6, 2026 - ... To install all Python packages ... requirements.txt · Learn more about requirements.txt and dependencies. ... No, you cannot upgrade Python versions with pip. Pip can only be used to update packages, not Python....
🌐
GeeksforGeeks
geeksforgeeks.org › python › how-to-upgrade-pip-on-windows
How to Upgrade PIP on Windows - GeeksforGeeks
July 23, 2025 - In this tutorial, we will see how to Upgrade PIP on Windows. We will cover how to upgrade, check the version, and also how to downgrade PIP to the previous version. PIP is a package management system used to install and manage software packages/libraries written in Python.
Find elsewhere
🌐
Data to Fish
datatofish.com › upgrade-pip
How to Upgrade pip
In this tutorial, you will learn how to upgrade pip. Make sure that Python was added to your Windows path.
🌐
freeCodeCamp
freecodecamp.org › news › pip-upgrade-and-how-to-update-pip-and-python
Pip Upgrade – And How to Update Pip and Python
March 14, 2023 - In cases when you want to update only Pip, open your terminal and run pip3 install --upgrade pip. You can then confirm the update by running pip3 --version: This article took you through how to update Python and Pip by downloading the installation ...
🌐
Python Packaging
packaging.python.org › tutorials › installing-packages
Installing Packages — Python Packaging User Guide
python3 -m pip install --no-index --find-links=file:///local/dir/ SomeProject python3 -m pip install --no-index --find-links=/local/dir/ SomeProject python3 -m pip install --no-index --find-links=relative/dir/ SomeProject Windows · py -m pip install --no-index --find-links=file:///local/dir/ SomeProject py -m pip install --no-index --find-links=/local/dir/ SomeProject py -m pip install --no-index --find-links=relative/dir/ SomeProject · To install from other data sources (for example Amazon S3 storage) you can create a helper application that presents the data in a PEP 503 compliant index format, and use the --extra-index-url flag to direct pip to use that index.
🌐
Python.org
discuss.python.org › packaging
Pip upgrade to 22.3 windows10 - Packaging - Discussions on Python.org
November 6, 2022 - Hi all, I’m trying to upgrade my pip version. I’m running in cmd promtp as admin and my error is this When I go to my python 3.9 directory, I don’t seem to have a .py script to run the upgrade. When I’m in cmd prompt and go to python, my version comes up as “C:\WINDOWS\system32>python Python 3.9.7 (tags/v3.9.7:1016ef3, Aug 30 2021, 20:19:38) [MSC v.1929 64 bit (AMD64)] on win32 Type “help”, “copyright”, “credits” or “license” for more information.” I’m considering just unistalling all ...
🌐
Python
docs.python.org › 3 › installing › index.html
Installing Python modules — Python 3.14.4 documentation
For Windows users, the examples in this guide assume that the option to adjust the system PATH environment variable was selected when installing Python. It’s also possible to specify an exact or minimum version directly on the command line. When using comparator operators such as >, < or some other special character which get interpreted by shell, the package name and the version should be enclosed within double quotes: python -m pip install SomePackage==1.0.4 # specific version python -m pip install "SomePackage>=1.0.4" # minimum version
🌐
BlueVPS
bluevps.com › blog › how to update the python version: step-by-step guide install python and upgrade python version
How to Update the Python Version - Blog - BlueVPS
However, if you are using an earlier Python version, you may need to upgrade PIP, the command line interface for managing PyPI program installation, to update the Python version. In this tutorial, we will provide a comprehensive, step-by-step guide on how to update your Python version after installing Python on Windows, Linux, and macOS operating systems.
Top answer
1 of 10
180

Every minor version of Python, that is any 3.x and 2.x version, will install side-by-side with other versions on your computer. Only patch versions will upgrade existing installations.

So if you want to keep your installed Python 2.7 around, then just let it and install a new version using the installer. If you want to get rid of Python 2.7, you can uninstall it before or after installing a newer version—there is no difference to this.

Current Python 3 installations come with the py.exe launcher, which by default is installed into the system directory. This makes it available from the PATH, so you can automatically run it from any shell just by using py instead of python as the command. This avoids you having to put the current Python installation into PATH yourself. That way, you can easily have multiple Python installations side-by-side without them interfering with each other. When running, just use py script.py instead of python script.py to use the launcher. You can also specify a version using for example py -3 or py -3.6 to launch a specific version, otherwise the launcher will use the current default (which will usually be the latest 3.x).

Using the launcher, you can also run Python 2 scripts (which are often syntax incompatible to Python 3), if you decide to keep your Python 2.7 installation. Just use py -2 script.py to launch a script.


As for PyPI packages, every Python installation comes with its own folder where modules are installed into. So if you install a new version and you want to use modules you installed for a previous version, you will have to install them first for the new version. Current versions of the installer also offer you to install pip; it’s enabled by default, so you already have pip for every installation. Unless you explicitly add a Python installation to the PATH, you cannot just use pip though. Luckily, you can also simply use the py.exe launcher for this: py -m pip runs pip. So for example to install Beautiful Soup for Python 3.6, you could run py -3.6 -m pip install beautifulsoup4.

2 of 10
148

If you are upgrading any 3.x.y to 3.x.z (patch) Python version, just go to Python downloads page get the latest version and start the installation. Since you already have Python installed on your machine installer will prompt you for "Upgrade Now". Click on that button and it will replace the existing version with a new one. You also will have to restart a computer after installation.

If you are upgrading from 3.x to 3.y (minor) then you will be prompted with "Install Now". In this case, you are not upgrading, but you are installing a new version of Python. You can have more than one version installed on your machine. They will be located in different directories. When you have more than one Python version on your machine you will need to use py lanucher to launch a specific version of Python.

For instance:

py -3.7

or

py -3.8

Make sure you have py launcher installed on your machine. It will be installed automatically if you are using default settings of windows installer. You can always check it if you click on "Customize installation" link on the installation window.

If you have several Python versions installed on your machine and you have a project that is using the previous version of Python using virtual environment e.g. (venv) you can upgrade Python just in that venv using:

python -m venv --upgrade "your virtual environment path"

For instance, I have Python 3.7 in my ./venv virtual environment and I would like upgrade venv to Python 3.8, I would do following

python -m venv --upgrade ./venv

🌐
MonoVM
monovm.com › 📚 tutorials 📚 › how to update python version? - [upgrade python version]
How to Update Python Version? - [Upgrade Python Version]
October 20, 2024 - Searching Packages: pip search package-name allows users to search for packages available on PyPI. Managing Different Versions: PIP makes it easier to upgrade to newer versions of packages or downgrade to older ones, providing flexibility based on project requirements. There are two simple ways to update your current Python version with the latest one.
🌐
GeeksforGeeks
geeksforgeeks.org › how-to-update-python-on-windows
How to update Python on Windows? - GeeksforGeeks
August 13, 2024 - Make sure to select the "Add Python 3.9 to PATH" option. and click on "Install Now". ... In this tutorial, we will see how to Upgrade PIP on Windows. We will cover how to upgrade, check the version, and also how to downgrade PIP to the previous version.What does pip () do?PIP is a package management system used ...
🌐
Wikihow
wikihow.com › computers and electronics › software › programming › python › how to update pip on windows, mac, & linux: easy tutorial
How to Update Pip on Windows, Mac, & Linux: Easy Tutorial
April 8, 2025 - If you're using Python 3.4 or later, you can update Pip using the command python -m pip install --upgrade pip. To check your Pip version, use pip3 -V (Python 3) or pip2 -V (Python 2). If you want to update Python in addition to Pip, you can ...
🌐
Metaschool
metaschool.so › home › answers › how to update pip in python
How to Update Pip in Python
February 7, 2025 - We explored several methods to ... methods we covered: Method 1: Upgrade Pip using the python -m pip install --upgrade pip command after checking your current version....