Skip to content
Advertisement

How to install Python package installer PIP on Ubuntu 20.04 Linux

Trying to install pip with Ubuntu version 20.04, Python version 3.8 on my Oracle virtual box. Tried everything to install pip but failed

Steps tried

$ sudo apt update
$ sudo apt install python3-pip

Also tried

$ sudo apt-get install python3-pip

Error both times

python3-pip is not available but is being used by another candidate. This may mean that the package has been obsolete, has been missing or is only available from another source.

E: Package ‘python3-pip’ has no installation candidate

Advertisement

Answer

Option 1

1.vim /etc/apt/sources.list

2.add these lines in the above file.

   deb http://http.kali.org/kali kali-rolling main non-free contribs
   deb http://kali.cs.nctu.edu.tw/kali kali-rolling main contrib non-free
   deb-src http://http.kali.org/kali kali-rolling main non-free contrib
  1. sudo apt update

  2. sudo apt install python3-pip

Option 2

sudo apt-get update
sudo apt-get upgrade
sudo apt install python3-pip

Option 3 https://stackoverflow.com/a/59922280/11741464

Source: facing problem in kali linuix python3-pip

Advertisement