Appearance
How do I upgrade the Python installation in Windows 10?
To upgrade the Python installation in Windows 10, you need to use the official Python installer. pip is a package manager for third-party libraries and cannot upgrade the Python interpreter itself.
First, download the latest Python version from the official website (python.org). Run the installer and ensure Add Python to PATH is checked before clicking Install Now.
If you want to upgrade pip itself (not Python), you can open the command prompt or PowerShell and run the following command:
command to upgrade pip
bash
python -m pip install --upgrade pip
<div class="alert alert-info flex not-prose">Watch a video course Python - The Practical Guide
</div>
Please note that this will upgrade the version of Python that is associated with the pip executable, which may not be the version of Python that is used by default in the command prompt or PowerShell. If you want to upgrade the default version of Python, you will need to download the latest version of Python from the official website and run the installer.
In case of any issues with the above commands, try running the command prompt as an administrator.