Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Not able to install python-pip on SUSE

Tags:

python

pip

suse

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
like image 591
Nitesh Selkari Avatar asked Apr 06 '15 10:04

Nitesh Selkari


People also ask

Why can't I install pip Python?

One of the most common problems with running Python tools like pip is the “not on PATH” error. This means that Python cannot find the tool you're trying to run in your current directory. In most cases, you'll need to navigate to the directory in which the tool is installed before you can run the command to launch it.


2 Answers

Please Follow instructions from below link for OpenSUSE

python-pip from Cloud:Tools project


Mirroring instructions for quick goto:

For SLE 12 SP4 run the following as root:
zypper addrepo https://download.opensuse.org/repositories/Cloud:Tools/SLE_12_SP4/Cloud:Tools.repo
zypper refresh
zypper install python-pip
For SLE 12 SP3 run the following as root:
zypper addrepo https://download.opensuse.org/repositories/Cloud:Tools/SLE_12_SP3/Cloud:Tools.repo
zypper refresh
zypper install python-pip
For SLE 12 run the following as root:
zypper addrepo https://download.opensuse.org/repositories/Cloud:Tools/SLE_12/Cloud:Tools.repo
zypper refresh
zypper install python-pip
like image 180
rg_dev Avatar answered Oct 02 '22 01:10

rg_dev


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.

like image 41
JamesNJ Avatar answered Oct 01 '22 23:10

JamesNJ