Muối Travels - Những chuyến đi và dòng thời gian của Muối
How to install python-pip3 on Ubuntu 18.04 and other linux distros based on Ubuntu

How to install python-pip3 on Ubuntu 18.04 and other linux distros based on Ubuntu

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 -y

Important: 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 --user

Verify installation 

If all went well, you can verify installation was successful or not by try this command:

pip3 --version

You will see a message like that:

How to install python-pip3 on Ubuntu 18.04 and other linux distros based on Ubuntu

Congratulations, you have succeeded😍

Những bài viết tương tự
Chủ đề công nghệ và máy tính

Những bài viết có nội dung liên quan mấy máy tính và lập trình được tớ viết lại thông qua những trải nghiệm và học hỏi của mìnhp

Những bài viết của tớ
Chủ đề remember time
Những kỉ niệm khó quên của tớ được gợi lại thông qua một sự tình cờ và được trình bày dưới góc nhìn của một người thứ ba
Những bài viết của tớ