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
In Ubuntu,
pipis provided by thepython-pippackage. You can install it in the Software Center, or, if you prefer to use the command line:If you have not already installed
python-devandbuild-essential, you should install them too. (But it seems yourapt-getcommand might have successfully installed them. If you’re not sure, you can check by trying to install them again. Or withapt-cache policy python-dev build-essential.)Once the necessary software is installed, if you wish to update it further, you can do so with
pipitself, by running:Source: How to install pip on Ubuntu by Eliot (dated, but should still apply).