Python 3.8.16 (default, Jun 23 2024, 20:41:42)
[GCC 11.4.0] on linux
Type “help”, “copyright”, “credits” or “license” for more information.
import wx
Traceback (most recent call last):
File “”, line 1, in
File “/home/luo/myproject/venv/lib/python3.8/site-packages/wx/init.py”, line 17, in
from wx.core import *
File “/home/luo/myproject/venv/lib/python3.8/site-packages/wx/core.py”, line 12, in
from ._core import *
ModuleNotFoundError: No module named ‘wx._core’
pip list:
Package Version
numpy 1.24.4
pillow 10.3.0
pip 24.1
setuptools 70.1.0
six 1.16.0
wheel 0.43.0
wxPython 4.2.1
pip -V:
pip 24.1 from /home/luo/myproject/venv/lib/python3.8/site-packages/pip (python 3.8)
I don’t know what caused this import error