[opensuse] Leap 42.1 python & pip versions
Hi all. Just upgraded the workstation to 42.1, so far so good, mostly. I see that python 2.7.12 and 3.4 are both installed, but only pip for 3.4.... This is a bit of a problem for those of us who want to continue using 2.7 most of the time... $ sudo update-alternatives --config python update-alternatives: error: no alternatives for python $ sudo update-alternatives --config pip There is only one alternative in link group pip (providing /usr/bin/pip): /usr/bin/pip3.4 Nothing to configure. $ python --version Python 2.7.12 $ pip --version pip 7.1.2 from /usr/lib/python3.4/site-packages (python 3.4) $ zypper se -s python-pip S | Name | Type | Version | Arch | Repository --+------------+---------+-----------+--------+---------------------- | python-pip | package | 7.1.2-1.1 | noarch | Main Repository (OSS) $ easy_install --version setuptools 18.3.2 from /usr/lib/python3.4/site-packages (Python 3.4) $ zypper se -s setuptools S | Name | Type | Version | Arch | Repository --+------------------------+---------+------------+--------+---------------------- | python-setuptools | package | 18.0.1-2.2 | noarch | Main Repository (OSS) | python-setuptools-git | package | 1.1-3.2 | noarch | Main Repository (OSS) | python-setuptools_scm | package | 1.6.0-2.2 | noarch | Main Repository (OSS) i | python3-setuptools | package | 18.3.2-1.1 | noarch | Main Repository (OSS) i | python3-setuptools | package | 18.3.2-1.1 | noarch | openSUSE-42.1-0 | python3-setuptools-git | package | 1.1-3.3 | noarch | Main Repository (OSS) | python3-setuptools_scm | package | 1.8.0-1.1 | noarch | Main Repository (OSS) Ok, what to do? I'm about to try just installing the plain python-setuptools (no '3'), and see if that let's me go down the track to 'easy_install' pip for 2.7 Unless anyone has better suggestions? I'd prefer to avoid virtualenv if I can. Thanks. Michael -- Michael Fischer michael@visv.net -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Thursday 01 September 2016, Michael Fischer wrote:
Hi all.
Just upgraded the workstation to 42.1, so far so good, mostly.
I see that python 2.7.12 and 3.4 are both installed, but only pip for 3.4.... This is a bit of a problem for those of us who want to continue using 2.7 most of the time...
$ sudo update-alternatives --config python update-alternatives: error: no alternatives for python
$ sudo update-alternatives --config pip There is only one alternative in link group pip (providing /usr/bin/pip): /usr/bin/pip3.4 Nothing to configure.
Have you installed both of these packages?: python-pip python3-pip cu, Rudi -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Thu, Sep 01, Ruediger Meier wrote:
On Thursday 01 September 2016, Michael Fischer wrote:
Hi all.
Just upgraded the workstation to 42.1, so far so good, mostly.
I see that python 2.7.12 and 3.4 are both installed, but only pip for 3.4.... This is a bit of a problem for those of us who want to continue using 2.7 most of the time...
$ sudo update-alternatives --config python update-alternatives: error: no alternatives for python
$ sudo update-alternatives --config pip There is only one alternative in link group pip (providing /usr/bin/pip): /usr/bin/pip3.4 Nothing to configure.
Have you installed both of these packages?: python-pip python3-pip
Oh, bother! No, for whatever reason, I had only python3-pip. Which seems weird that the installer puts in both versions of python, but only one of pip? Ah well I managed to get it together by `zypper in setuptools`, `update-alternatives setuptools` `easy_install pip` Thanks for pointing that out. Michael -- Michael Fischer michael@visv.net -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (2)
-
Michael Fischer
-
Ruediger Meier