Install python-gtk2-dev by entering the following commands in the terminal:
sudo apt update sudo apt install python-gtk2-dev
Description:
GTK+ bindings: devel files
This archive contains files that allow you to build wrappers for addons that interoperate with python-gtk2 (pygtk). . This package is deprecated, you should migrate to using gobject-introspection (GIR) based python bindings instead (PyGObject). https://wiki.gnome.org/Projects/PyGObject/IntrospectionPorting
Homepage: http://www.pygtk.org/
Version: 2.24.0-5.1ubuntu2
Section: universe/python