在win 10上,ubuntu 18.04上的pip安装失败

问题描述 投票:-1回答:1

我想在ubuntu上安装virtualenv。但首先它说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。另一个无法安装pip的是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。帮助sos,不想使用谷歌或alexa!

python linux ubuntu ubuntu-18.04
1个回答
3
投票

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

sudo apt-get install software-properties-common
sudo apt-add-repository universe
sudo apt-get update
sudo apt-get install python-pip
© www.soinside.com 2019 - 2024. All rights reserved.