python3-pip now requires python3-distutils
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-pip (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
```
$ docker pull ubuntu:18.04
18.04: Pulling from library/ubuntu
Digest: sha256:
Status: Downloaded newer image for ubuntu:18.04
$ docker run -it --rm ubuntu:18.04 bash
# apt-get update && apt-get install -y --no-install-
# pip3 -h
Traceback (most recent call last):
File "/usr/bin/pip3", line 9, in <module>
from pip import main
File "/usr/lib/
from pip.utils import get_installed_
File "/usr/lib/
from pip.locations import (
File "/usr/lib/
from distutils import sysconfig
ImportError: cannot import name 'sysconfig'
```
It seems that python3-pip now requires `python3-distutils` (instead of being just a recommendation via `python3-
```
$ docker run -it --rm ubuntu:18.04 bash
# apt-get update && apt-get install -y --no-install-
# pip3 -h
Usage:
pip <command> [options]
...
```
The same scenario worked with ubuntu:16.04.
tags: | added: bionic |
It is fixed since `python3-pip - 9.0.1-2.3~ubuntu1`, tracked on https:/ /bugs.launchpad .net/ubuntu/ +source/ python- pip/+bug/ 1771624