当我尝试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