python3 pip broken since system update python3 pip broken since system update python-3.x python-3.x

python3 pip broken since system update


I've tested the PPA in a fresh docker container and it looks like the package is broken, all distutils modules are missing after installation. Looks like the package was rebuilt recently; maybe this is a new issue.

You can open a bug and wait until the PPA maintainer fixes it, but aside from that, there's not much you can do. You can of course try fiddling the installation:

$ wget https://www.python.org/ftp/python/3.6.5/Python-3.6.5.tgz$ tar xvf Python-3.6.5.tgz$ rsync -av Python-3.6.5/Lib/distutils/ /usr/lib/python3.6/distutils/

Of course, this is a very dirty stuff because I don't know what files should the correct package from that PPA have. Thus, I can give you no guarantee whatsoever whether this will work for you and not introduce any new bugs, but at least I could get pip running again and could install a package.


This solves the problem for me on Ubuntu and Linux Mint. First confirm that python3.6 is installed through ppa:jonathonf/python-3.6 by running the commands:

ls /etc/apt/sources.list.dsudo rm -i /etc/apt/sources.list.d/jonathonf-python-3_6-xenial.list

Then add the deadsnakes PPA using:

sudo add-apt-repository ppa:deadsnakes/ppasudo apt-get update

And finally either remove/install or reinstall python3.6

sudo apt-get remove python3.6sudo apt-get install python3.6

I also ran into unmet dependencies when reinstalling python. This was solved by manually removing libpython3.6-minimal. Hope this helps!


You're indeed not crazy, same problem here.

You can also try a previous version of the ppa from the same ppa, until they fix it:https://launchpad.net/~jonathonf/+archive/ubuntu/python-3.6

example command line is:

apt-get install python3.6=3.6.3-1ubuntu1~17.04.york1