Cannot install python3-pip on kali linux [closed]

Deadly 提交于 2020-12-26 05:15:23

问题


There is an error : it says there is no install candidate for python3-pip


回答1:


First you should check if pip3 is installed on your system . To do so run the following :

pip3 --version

if it's already installed you should get something like :

pip 18.1 from /usr/lib/python3/dist-packages/pip (python 3.7)

in this case pip3 is already installed and you don't need to do anything .

Otherwise python3-pip Package is in kali-rolling repos , And to install it you need to make sure you have kali-rolling enabled in your /etc/apt/sources.list , by running following in your terminal :

echo "deb http://http.kali.org/kali kali-rolling main non-free contrib" | sudo tee /etc/apt/sources.list

apt update && apt upgrade 

then finally you can install python3-pip by running :

apt install python3-pip 

This should get python3-pip installed on your kali machine

If for some weird reason this didn't work for you and you needed a quick way to install pip3 on your machine you can download this file : get-pip

Then run this in your terminal :

cd ~/Downloads 

python3 get-pip.py

This should get pip3 installed on your machine , you can check by running pip3 --version




回答2:


What about adding this ppa repo and updating the OS? also be sure your kali install in connected to internet.

sudo apt-get install software-properties-common sudo add-apt-repository ppa:deadsnakes/ppa sudo apt-get update sudo apt-get install python3.6



来源:https://stackoverflow.com/questions/61042356/cannot-install-python3-pip-on-kali-linux

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!