Not able to install python-pip on SUSE

Nitesh Selkari picture Nitesh Selkari · Apr 6, 2015 · Viewed 13.3k times · Source

I have a sandbox environment of SUSE Linux Enterprise Server 11 SP3 for VMware (x86_64), and trying to install python-pip on it through terminal using this command:

sudo zypper in python-pip

I am getting this message: Package 'python-pip' not found.

I tried to install pip using python get-pip.py after downloading get-pip.py It gives me this:

Could not find any downloads that satisfy the requirement pip
No distributions at all found for pip

Answer

JamesNJ picture JamesNJ · Apr 1, 2021

Very old issue. I recently needed to install SLE12sp5 on Power and hit similar challenge with pip. This was a fully licensed SLES edition, so I had access to all available SUSE zypper repos.

The default install on sp5 includes (python) Python 2.7.18 and (python3) Python 3.4.10. I could not find a suitable pip package to install for either.

Poking around I found python itself comes with a module to bootstrap pip. This can be invoked with:

python -m ensurepip

python3 -m ensurepip

https://docs.python.org/3/library/ensurepip.html

On the new Power SLE12sp5 system, the python3 version was successful, however this did not help me as I needed to use Ansible which requires versions greater then 3.4. The python v2 did not work as it seems like something is out of sync with 'setuptools'.

I was ultimately able to solve the Ansible & pip requirement on my system with SUSE's official install of python 3.6 which happens to include pip as well.

And with that I need to use the following in my inventory: ansible_python_interpreter: /usr/bin/python3.6

but that's a small price to pay for getting out of this dependency trap.