Dependencies of python2, e. g. GIMP

Solution 1:

Many components of Ubuntu 18.04 may depend on Python 2.7. Never remove the default python in Ubuntu.

First install python2 with

sudo apt install python

If GIMP still does not work, you can reinstall it with

sudo apt install --reinstall gimp