我一直在尝试设置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 由 python-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 和 build-essential ,您也应该安装它们. (但是您的apt-get命令可能似乎已经成功安装了它们.如果不确定,可以尝试再次安装以进行检查.或者使用apt-cache policy python-dev build-essential.)
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:无法找到包裹点
发布评论