"E:无法找到软件包python-pip";在Ubuntu 18.04上 [英] "E: Unable to locate package python-pip" on Ubuntu 18.04

查看:1366
本文介绍了"E:无法找到软件包python-pip";在Ubuntu 18.04上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在Ubuntu上安装virtualenv.

I am trying to install virtualenv on Ubuntu.

首先它说command 'pip' not found,所以我输入

sudo apt install python-pip

然后说

E: Unable to locate package python-pip

我尝试重置WSL,使用cmd下载,但不适用于Ubuntu.我不知道为什么即使我已经使用cmd下载了python3,virtualenv和pip.它不适用于Ubuntu 18.04.在Ubuntu 14.04上也会失败.

I tried to reset WSL, download using cmd but it doesn't work with Ubuntu. I don't know why. Even though I have downloaded python3, virtualenv, and pip using cmd. It doesn't work with Ubuntu 18.04. It also fails on Ubuntu 14.04.

aiki@LAPTOP-886AEJJG:~$ pip

Command 'pip' not found, but can be installed with:

sudo apt install python-pip

aiki@LAPTOP-886AEJJG:~$ sudo apt install python-pip
[sudo] password for aiki:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package python-pip

我试图在Win 10上安装jarvis和mycroft,但我需要使用Ubuntu,因为它仅适用于Linux.

I'm trying to install jarvis and mycroft on win 10, but I need to use Ubuntu because it only works with Linux.

推荐答案

在Ubuntu终端上尝试以下命令序列:

Try following command sequence on Ubuntu terminal:

sudo apt-get install software-properties-common
sudo apt-add-repository universe
sudo apt-get update
sudo apt-get install python-pip

这篇关于"E:无法找到软件包python-pip";在Ubuntu 18.04上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆