ImportError: bad magic number in 'wx': b'\x03\xf3\r\n'

Ok, I found the cause of all. It was a beginner’s error on my side.

My first test was to name my test script wx.py. This caused an error because I am not allowed to use the same name as the installed wx module.

I renamed wx.py to wx_test1.py but forgot to delete wx.pyc. This caused the import error.

Sorry, that I was so stupid.