E: Package python-pip has no installation candidate
E: Package python-pip has no installation candidate
If you have python(python2) installed you then you can use following command to install pip(for python2).
curl https://bootstrap.pypa.io/pip/2.7/get-pip.py -o get-pip.py
python get-pip.py
Now you can check for pip2
pip2 --version
I hope these will help you
Just for reference, this problem can occur if you are using Windows Ubuntu Shell and your firewall is blocking your Ubuntu sandboxs traffic. In that case installation resources can not be found and simple apt-update
will not work.
In order to test if the firwall causes your problem, you can simply try to ping a website. Also if apt-update
will fail with connection refused
the firwall is likely your problem. Check this post on how to add your sandbox to the firewall whitelist (Endpoint Protection).
E: Package python-pip has no installation candidate
Use these commands first then try again and perform a reinstallation by sudo apt reinstall python3-pip
sudo add-apt-repository universe
sudo add-apt-repository multiverse
sudo apt-get update