pip3 installs under python3.5
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-pip (Ubuntu) |
Fix Released
|
High
|
Barry Warsaw | ||
Wily |
Fix Released
|
High
|
Barry Warsaw | ||
Xenial |
Fix Released
|
High
|
Barry Warsaw |
Bug Description
On a freshly installed and updated xubuntu 15.10, /usr/bin/python3 links to /usr/bin/python3.4
However, pip3 (from repository) installs packages under python3.5
Fix: Either change the symlink (it may break some pre-python 3.5 code in the distro though) or the first line of pip.
ProblemType: Bug
DistroRelease: Ubuntu 15.10
Package: python3 3.4.3-4ubuntu1
ProcVersionSign
Uname: Linux 4.2.0-16-generic x86_64
ApportVersion: 2.19.1-0ubuntu5
Architecture: amd64
CurrentDesktop: XFCE
Date: Thu Nov 19 15:36:29 2015
InstallationDate: Installed on 2015-11-19 (0 days ago)
InstallationMedia: Xubuntu 15.10 "Wily Werewolf" - Release amd64 (20151021)
SourcePackage: python3-defaults
UpgradeStatus: No upgrade log present (probably fresh install)
affects: | python3-defaults (Ubuntu) → python-pip (Ubuntu) |
Changed in python-pip (Ubuntu): | |
assignee: | nobody → Barry Warsaw (barry) |
I've confirmed that the shebang for /usr/bin/pip3 is /usr/bin/python3.5 where it should be /usr/bin/python3 and that affects where pip3 will install things by default. I should mention that in the face of multiple supported versions of Python 3, "pip3" is ambiguous anyway, and you might want to use `python3.4 -m pip install` to be explicit. Still, pip3 by default should install in the default Python 3.
(Aside: note that upstream pip is trying to break the link between the shebang and where things get installed. That won't help for Wily though. Also, this isn't Xubuntu specific).