ModuleNotFoundError: No module named 'wx._core'

Get this error after reinstalling wxPython 4.20.


What is your Python version?

Python 3.11.2 (tags/v3.11.2:878ead1, Feb 7 2023, 16:38:35) [MSC v.1934 64 bit (AMD64)] on win32

I saw the same error, with the same Python version and using Visual Studio Build Tools 2019 16.9.6.

I took a look inside the package, and noticed that all the .pyd’s in the wx folder were missing an extension. So, I edited the .whl, renaming _core to _core.pyd and so forth, and changed RECORD accordingly. Apparently that did the trick, pip is happy to install the resulting wheel, and I can run wxPython apps under 3.11 now.

that worked thanks