无法在Kali Linux上安装python3-pip [英] Cannot install python3-pip on kali linux

查看:161
本文介绍了无法在Kali Linux上安装python3-pip的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有一个错误:它说没有python3-pip的安装候选

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

推荐答案

首先,您应该检查系统上是否已安装 pip3 .为此,请运行以下命令:

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)

在这种情况下,已经安装了 pip3 ,您无需执行任何操作.

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

否则, python3-pip 软件包位于 kali-rolling 仓库中,要安装该软件包,您需要确保具有 kali-rolling 在您的/etc/apt/sources.list 中启用,方法是在终端中运行以下命令:

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 

然后,最后您可以运行以下命令来安装 python3-pip :

then finally you can install python3-pip by running :

apt install python3-pip 

这应该在您的kali机器上安装 python3-pip

This should get python3-pip installed on your kali machine

如果出于某种奇怪的原因对您不起作用,并且您需要一种快速的方法来在计算机上安装pip3,则可以下载此文件:

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

这应该在您的计算机上安装了 pip3 ,您可以通过运行 pip3 --version

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

这篇关于无法在Kali Linux上安装python3-pip的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆