root@kali:~# apt-get install python-pip
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package python-pip
I tried updating my source file with the following commands:
leafpad /etc/apt/sources.list
Remove everything and passed the following lines:
deb http://http.kali.org/kali kali-rolling main contrib non-free
deb-src http://http.kali.org/kali kali-rolling main non-free contrib
Save and quit then did
apt-get update
apt-get update --fix-missing
apt autoremove
then
apt-get update
apt-get install python-pip
I still get the same issue
It is better to install it manually.
wget https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python get-pip.py
Remeber to check the python version with python --version
to check if that's the one you want. If it prints 2.7
and you want Python 3, your command may be python3
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.