
Here are the commands you need: curl -o get-pip.py You are generally better off using a virtual environment. However, it’s worth noting that running pip as the root user can cause broken permissions and conflicting behavior with the system package manager. If you do need the latest version, you can download get-pip.py and run it. Note the Ubuntu package probably won’t be up to date. Instead, you must use the Ubuntu packaging system. The Ubuntu version of pip has been modified to disallow upgrades via this method. If you see the message Not uninstalling pip at /usr/lib/python3/dist-packages, outside environment /usr, it’s because you’re using Ubuntu. Just run the following: python -m pip install -upgrade pipīear in mind that this command will try to uninstall the current version and replace it with the new one. Upgrading pip is again very easy process.


Our server is on 20.0.2, so an upgrade is definitely in order. At the time of writing, the latest pip version is 22.0.4. You can check what the latest pip version is here and decide whether to update accordingly. Your output should look something like this: pip 20.0.2 from /usr/lib/python3/dist-packages/pip (python 3.8) The command for this is thankfully very simple: pip -version You can then compare that to the latest published version to see whether you should upgrade.

The first thing you’ll probably want to do is check which pip version you have in the first place. This process should work whether you’re using pip on Linux, Windows, or macOS. This is what we’ll be teaching you today. Pip is usually bundled with Python and updates automatically, but you might want to manually upgrade and manage it.

It lets you install third-party software packages that are listed in the Python Package Index (PyPi), extending functionality for developers and allowing regular users to install certain applications written in Python. Pip is the defacto tool for managing and installing your Python packages.
