E: could not find batch package

I am trying to set up a 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 
+10
source share
4 answers

Ubuntu pip 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 

If you have not installed python-dev and build-essential yet, you should also install them. (But it looks like your apt-get command could have installed them successfully. If you are not sure, you can check by trying to install them again. Or using the apt-cache policy python-dev build-essential .)

After installing the necessary software, if you want to update it further, you can do this using pip itself by running:

 sudo pip install --upgrade pip sudo pip install --upgrade virtualenv 

Source: How to install pip in Ubuntu using Eliot (deprecated, but still applicable).

+24
source

To install pip, download get-pip.py . Then run this command:

 sudo python get-pip.py 

It will download and install pip from the source. To verify that the protocol is installed, enter the following:

 which pip 

he will show where the peak is

 /usr/local/bin/pip 

or just type:

 pip 
+4
source

Just update using:

 sudo apt-get update 

Your problem will be resolved.

+1
source

Python packages usually have the python prefix.

Try installing python-pip instead of pip (this may change depending on which distribution you are running).

0
source

All Articles