gpt4 book ai didi

python - 如何在 ubuntu 20.04 上安装 python3-pip

转载 作者:行者123 更新时间:2023-12-03 09:53:32 24 4
gpt4 key购买 nike

我在 PC 上安装了 Ubuntu 20.04。然后我尝试开始并为 python3 安装 pip。然而,似乎没有任何工作。
这是我到目前为止所尝试的:

sudo apt install python3-pip
这是我得到的错误:
Reading package lists... Done
Building dependency tree
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
我已经尝试了 Carlos Sanchez JR 提出的解决方案:
How to install Python package installer PIP on Ubuntu 20.04 Linux
按照上面链接中给出的建议后,我在执行 sudo apt update 时遇到了这个错误。 :
Ign:1 cdrom://Ubuntu 20.04 LTS _Focal Fossa_ - Release amd64 (20200423) focal InRelease
Hit:2 cdrom://Ubuntu 20.04 LTS _Focal Fossa_ - Release amd64 (20200423) focal Release
Hit:4 http://security.ubuntu.com/ubuntu focal-security InRelease
Hit:6 http://archive.ubuntu.com/ubuntu focal InRelease
Get:5 http://kali.download/kali kali-rolling InRelease [30.5 kB]
Hit:7 http://archive.ubuntu.com/ubuntu focal-updates InRelease
Err:5 http://kali.download/kali kali-rolling InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY ED444FF07D8D0BF6
Get:8 http://kali.cs.nctu.edu.tw/kali kali-rolling InRelease [30.5 kB]
Err:8 http://kali.cs.nctu.edu.tw/kali kali-rolling InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY ED444FF07D8D0BF6
Reading package lists... Done
W: GPG error: http://kali.download/kali kali-rolling InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY ED444FF07D8D0BF6
E: The repository 'http://http.kali.org/kali kali-rolling InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: GPG error: http://kali.cs.nctu.edu.tw/kali kali-rolling InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY ED444FF07D8D0BF6
E: The repository 'http://kali.cs.nctu.edu.tw/kali kali-rolling InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
尝试 sudo apt install python3-pip在这一 pip 上只是给了我相同的 E: Package 'python3-pip' has no installation candidate和以前一样的错误。尝试时同样如此 sudo apt-get install python3-pip .
我没有找到解决这个问题的其他方法。

最佳答案

试试这个命令
sudo apt-get install python3-pip
备注 :如果您有全新安装,则需要先执行此操作,然后再尝试上述命令。
sudo apt-get update

关于python - 如何在 ubuntu 20.04 上安装 python3-pip,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62317653/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com