GNU/Linux Fedora 40 Installing wxPython Python 3 – QuickStart Guide
Hi! The Tutorial shows you Step-by-Step How to Install wxPython Python 3 in Fedora 40 GNU/Linux Desktop.
And wxPython for Fedora 40 is the Best and Most Mature Python Cross-Platform GUI Toolkit, given a number of constraints.
The only reason wxPython isn’t the Standard Python GUI Toolkit is that Tkinter was there first.
Especially relevant: an Equivalent wxPython Fedora Setup may be achieved on Anaconda Python instead that for the System one like here!
Finally, the wxPython Python3 Release is Now Available under the PyPi Packages Repository.
![Installing wxPython Python 3 for Fedora 40 - Featured](https://tutorialforlinux.com/wp-content/media/dg139/intro/gnomePenguinPython.jpg)
1. Launching Terminal
How to QuickStart with Command Line on Fedora
Authenticate with the User Admin Pass.
If Got “User is Not in Sudoers file” then see: How to Enable sudo.
-
2. Installing Packages
Now Install Required Packages
Fist, Install the Build Tools:sudo dnf groupinstall "Development Tools"
Then some Required stuff executing:sudo dnf install -y {dpkg,freeglut,gtk3,lib{jpeg,notify,SM,tiff},python3,SDL}{,-devel}
Again to Setup WebKit Browser Engine and related Libraries run:sudo dnf install webkitgtk4{,-jsc}{,-devel}
And last, GStreamer with:gstreamer1-devel gstreamer1-plugins-base-tools gstreamer1-plugins-base-devel gstreamer1-plugins-good gstreamer1-plugins-good-extras gstreamer1-plugins-ugly gstreamer1-plugins-bad-free gstreamer1-plugins-bad-free-devel gstreamer1-plugins-bad-free-extras
-
3. Installing wxPython
Now to Install wxPython Python 3
Simply play:pip3 install -v --user wxPython
Take into account that to complete the Installation may take a long Time…
So let the Terminal Window open until the Setup is achieved: -
4. Testing wxPython
Finally, to Test WxPython Installation on Python 3:
python3
And then on Python 3 Prompt Import it with:
import wx
Congratulations! Now you can be able to Develop Python 3 WxPython UIs :)