Kali-Linux
我無法安裝 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。
我該如何解決?
我無法安裝 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
目前版本的 Debian 或Kali
python-pip
中不再提供; 你可以安裝 Python 3 版本sudo apt install python3-pip