Get the source from here : https://launchpad.net/python-distutils-extra Assuming that you have the source in /home/tc/Downloads, cd /home/tc/Downloads tar zxf python-distutils-extra-2.39.tar.gz cd python-distutils-extra-2.39 python3.6 setup.py build sudo python3.6 setup.py install --root=/tmp/python-distutils-extra cd /tmp/python-distutils-extra for i in $(sudo find . -not -type 'd' | grep "__pycache__") do sudo rm -rf "$i" done cd /tmp mksquashfs python-distutils-extra-2.39/ python-distutils-extra-2.39.tcz mv python-distutils-extra-2.39.tcz /home/tc