我无法安装 pip 和其他必需品

我无法安装 pip 和其他必需品

当我尝试pip使用apt此命令安装时:sudo apt install python-pip它回复:

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package python-pip

pip3 也会发生这种情况。

┌──(aja㉿aja)-[~/Desktop/minecraft java] 
└─$ sudo apt install python3-pip 
[sudo] password for aja: 
Reading package lists... Done 
Building dependency tree... Done 
Reading state information... Done 
Package python3-pip is not available, but is referred to by another package. 
This may mean that the package is missing, has been obsoleted, or 
is only available from another source 

E: Package 'python3-pip' has no installation candidate

我正在使用 Kali Linux。

我该如何解决?

答案1

python-pip当前版本的 Debian或卡利语;你可以安装Python 3版本

sudo apt install python3-pip

答案2

我无法安装 pip 和其他必需品

python3-pip可以在 Kali 存储库中找到。你的/etc/apt/sources.list配置错误。

使用以下命令:

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

相关内容