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
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.
python-pip from Cloud:Tools project
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
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With