This is Fedora with python3-wxpython4-4.0.6-8 installed.
I tried a sample from the wxpython website:
#!/usr/bin/env python3
# First things, first. Import the wxPython package.
import wx
# Next, create an application object.
app = wx.App()
# Then a frame.
frm = wx.Frame(None, title="Hello World")
# Show it.
frm.Show()
# Start the event loop.
app.MainLoop()
and got
ImportError: bad magic number in 'wx': b'\x03\xf3\r\n'
Any ideas?