After installing the package libgtk-3-dev and "pip install python-config"
running "pip install --upgrade wxPython" results in --gtk3 --python="/usr/bin/python" --out=build/waf/2.7/gtk3 configure build Setting top to : /tmp/pip-install-nNxPM7/wxPython Setting out to : /tmp/pip-install-nNxPM7/wxPython/build/waf/2.7/gtk3 Checking for 'gcc' (C compiler) : /usr/bin/gcc Checking for 'g++' (C++ compiler) : /usr/bin/g++ Checking for program 'python' : /usr/bin/python Checking for python version >= 2.7.0 : 2.7.16 python-config : not found Checking for library python2.7 in LIBDIR : not found Checking for library python2.7 in python_LIBPL : yes Checking for header Python.h : Distutils not installed? Broken python installation? Get python-config now! The configuration failed (complete log in /tmp/pip-install-nNxPM7/wxPython/build/waf/2.7/gtk3/config.log) Command '"/usr/bin/python" /tmp/pip-install-nNxPM7/wxPython/bin/waf-2.0.19 --wx_config=/tmp/pip-install-nNxPM7/wxPython/build/wxbld/gtk3/wx-config --gtk3 --python="/usr/bin/python" --out=build/waf/2.7/gtk3 configure build ' failed with exit code 1. Finished command: build_py (0.936s) Finished command: build (8m26.930s) Command '"/usr/bin/python" -u build.py build' failed with exit code 1. ---------------------------------------- Failed building wheel for wxPython