This is on PyPI. Starting with wxPython 4, Python 3 is supported.
Unfortunately, PyPI has a package called wx which is stuck in version 3.0.3; Be sure to install the package named wxpython .
pip install wxpython
Please note that pip will automatically create wxWidgets for you, but will not install wxWidgets system dependencies such as GTK and OpenGLu. If the above command fails, look above for a message like this:
checking for <something>... not found checking for <something>... no configure: error: <prereq> libraries not available Error running configure ERROR: failed building widgets
This should give you information about at least one of the packages that are not on your system.
The "official" list of prerequisites from wxWidgets source :
- Dpkg-dev
- build interchangeable
- libjpeg-dev
- Libtiff-dev
- libsdl1.2-dev
- libgstreamer-plugins-base0.10-dev # or 1.0 if available
- libnotify-dev
- freeglut3
- freeglut3-dev
- libsm-dev
- libgtk-3-dev
- libwebkitgtk-3.0-dev # or libwebkit2gtk-4.0-dev, if available
- libxtst-dev
The actual package names provided by your package manager may not match them, and frankly, I donβt know what is the best way to query the package manager to determine which packages provide the necessary libraries.
Kyle strand
source share