How should I upgrade pip on Ubuntu?

So what the heck is pip after all?

The concept of a package manager might be familiar to you if you are coming from other languages. JavaScript uses npm for package management, Ruby uses gem, and .NET use NuGet. In Python, pip has become the standard package manager. So, what is pip? pip is a package manager for Python. That means it’s a tool that allows you to install and manage additional libraries and dependencies that are not distributed as part of the standard library.

sudo apt install python3-pip

sudo pip3 install --upgrade pip setuptools

sudo apt update&& sudo apt upgrade python-pip

Upgrade pip with pip and change the link as shown:

apt-get install python-pip
pip install --upgrade pip
pip --version  
ln -s /usr/local/bin/pip /usr/bin/
pip --version  

Like above, but now use python -m pip

pip install --upgrade pip
pip --version  
python -m pip --version  

easy_install

easy_install -U pip
pip --version  

on Windows use Chocolatey, and on macOS use homebrew !

Akash Angle

I am a Full time Linux user who has quit using Windows for unknown reasons, making my life truly open source.

Recent Posts

Get the most juice from your ISP/router — setting MTU size & other handy tweaks

This is not an ad-vocation by any means for TP-link branding, however a real life…

7 months ago

How to make any Android phone up-to 3x faster – Developer options unleashed

First of all we need to hit the kernel version on any Android device. You…

7 months ago

systemd-resolve command not found in Ubuntu Desktop

Use resolvectl status instead. It's like something deprecates and suddenly things get broken! In systemd…

12 months ago

How to exclude multiple directories with rsync?

Geeky question: This is what people and friends have tried: rsync -arv --exclude "/home/john/.ccache:/home/ben/build" /home/john…

12 months ago

How to resolve apt-get -f not working

You might encounter this error which appears to be very common on Debian based Distro's…

12 months ago

How to install Broadcom STA wireless drivers on Kali Linux

PS: This article is for only Kali Linux users, that too having a Broadcom Wireless…

1 year ago