E:无法找到包裹点 [英] E: unable to locate package pip
问题描述
我一直在尝试设置Python-android环境,并不断收到此错误消息:
I have been trying to set up Python-android environment, and kept getting this error message:
~$ sudo apt-get install build-essential patch git-core ccache ant pip python-devsudo: /var/lib/sudo/plaix writable by non-owner (040777), should be mode 0700
[sudo] password for plaix:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package pip
推荐答案
在Ubuntu中, pip
由
In Ubuntu, pip
is provided by the python-pip
package. You can install it in the Software Center, or, if you prefer to use the command line:
sudo apt-get update && sudo apt-get install python-pip
如果尚未安装 python-dev
和
If you have not already installed python-dev
and build-essential
, you should install them too. (But it seems your apt-get
command might have successfully installed them. If you're not sure, you can check by trying to install them again. Or with apt-cache policy python-dev build-essential
.)
一旦安装了必要的软件,如果您想进一步更新,可以使用pip
本身,通过运行:
Once the necessary software is installed, if you wish to update it further, you can do so with pip
itself, by running:
sudo pip install --upgrade pip
sudo pip install --upgrade virtualenv
来源: 如何在Ubuntu上安装pip ,方法是 Eliot (已过时,但应该仍然适用).
Source: How to install pip on Ubuntu by Eliot (dated, but should still apply).
这篇关于E:无法找到包裹点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!