Pip is a package management system that implements installation and package management (modules) written in Python. By default, pip is not installed on Ubuntu😑. But the installation is quite easy. It just needs some simple and short command to complete.
In this article, I will show you some easiest of the ways to install pip (and of course I will only talk about pip3 in this article😂).
Install python-pip3 on Ubuntu 18.04
(The following ways are correct for both Ubuntu and other linux distributions based on Ubuntu).
1. The most common way
By this way, you just need launch terminal and run all these commands:
apt update
apt install python3-pip -yImportant: You must need/have root permission to execute those commands. (Add sudo after each command if you don't have)
2. Using curl command
By using curl , please ensure that you have installed curl (by using command apt install curl🙄) before.
Now, run the following commands and you will have pip3 on your Ubuntu Desktop.
curl "https://bootstrap.pypa.io/get-pip.py" -o "get-pip.py"
python3 get-pip.py --userVerify installation
If all went well, you can verify installation was successful or not by try this command:
pip3 --versionYou will see a message like that:
Congratulations, you have succeeded😍