本文介绍了如何在Ubuntu 20.04 Linux上安装Python软件包安装程序PIP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
尝试在我的Oracle虚拟机上安装 Ubuntu版本20.04 , Python版本的pip .尝试一切安装点子,但失败了
Trying to install pip with Ubuntu version 20.04, Python version 3.8 on my Oracle virtual box.Tried everything to install pip but failed
尝试过的步骤
$ sudo apt update
$ sudo apt install python3-pip
也尝试过
$ sudo apt-get install python3-pip
两次错误
E:软件包"python3-pip"没有安装候选对象
E: Package 'python3-pip' has no installation candidate
推荐答案
选项1
1.vim/etc/apt/sources.list
1.vim /etc/apt/sources.list
2.在上述文件中添加这些行.
2.add these lines in the above file.
deb http://http.kali.org/kali kali-rolling main non-free contribs
deb http://kali.cs.nctu.edu.tw/kali kali-rolling main contrib non-free
deb-src http://http.kali.org/kali kali-rolling main non-free contrib
-
sudo apt更新
sudo apt update
sudo apt install python3-pip
sudo apt install python3-pip
选项2
sudo apt-get update
sudo apt-get upgrade
sudo apt install python3-pip
选项3 https://stackoverflow.com/a/59922280/11741464
来源: kali linuix python3-pip中的问题
这篇关于如何在Ubuntu 20.04 Linux上安装Python软件包安装程序PIP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!