No way to install pip for Python 3.4 in 15.10 Wily

Bug #1506907 reported by Harry P
50
This bug affects 11 people
Affects Status Importance Assigned to Milestone
Python
New
Undecided
Unassigned
python3.4 (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

Related to this bug: https://bugs.launchpad.net/ubuntu/+source/python3.4/+bug/1290847

It looks like 15.10 uses a mixture of Python 3.4 and 3.5 (hopefully that's temporary?). Pip, the python package manager, is available from "python-pip" for Python 2.7, and "python3-pip" for Python 3.5, however, there is no python3.4-pip, and because of the weird state of Python in debian/ubuntu, there's no way to use "ensurepip" to get it either.

One fix would be to just ship a complete version of python/python3.4/python3.5, including pip, as part of the base package, if there's any appetite for revisiting the historical decision to unbundle python...

Tags: wily
Revision history for this message
Matthias Kerk (tuxlife) wrote :

root@f762c15dc931:/# dpkg -l python3 python3.4 python3.5 python3-pip
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-=============================================================-===================================-===================================-================================================================================================================================
ii python3 3.4.3-4ubuntu1 amd64 interactive high-level object-oriented language (default python3 version)
ii python3-pip 1.5.6-7ubuntu1 all alternative Python package installer - Python 3 version of the package
ii python3.4 3.4.3-9ubuntu1 amd64 Interactive high-level object-oriented language (version 3.4)
ii python3.5 3.5.0-3 amd64 Interactive high-level object-oriented language (version 3.5)
root@f762c15dc931:/# python3 --version
Python 3.4.3+
root@f762c15dc931:/# pip --version
pip 7.1.2 from /usr/local/lib/python3.5/dist-packages (python 3.5)
root@f762c15dc931:/# pip3 --version
pip 7.1.2 from /usr/local/lib/python3.5/dist-packages (python 3.5)

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in python3.4 (Ubuntu):
status: New → Confirmed
tags: added: wily
Revision history for this message
Hồng Quân (ng-hong-quan) wrote :

I make python3.5 default for python3, by this command:

sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.5 10

Changed in python3.4 (Ubuntu):
importance: Undecided → Medium
Revision history for this message
tomdryer (tomdryer-com) wrote :

One workaround is to use this installer:
https://bootstrap.pypa.io/get-pip.py is a workaround until this gets fixed.

Revision history for this message
Ian Krase (ikrase) wrote :

There seems to be some broader wierdness w/r/t what calls python3 and what calls python3.5.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.