问题
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
回答1:
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
sudo apt update
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
来源:https://stackoverflow.com/questions/62125925/how-to-install-python-package-installer-pip-on-ubuntu-20-04-linux