I don't know why you're still seeing the attrdict3 error, but wxPython 4.2.0 isn't going to work with Python 3.11 anyway. I'd suggest using an older Python version, or you can use one of the wheels ...
[wxPython] 4.2.1: build from the sources tags: wxPython-4.2.1 [Python] 3.11.4: self-build with the modules: attrdict3 numpy pillow six appdirs setuptools wheel twine sphinx requests pytest ...
These are the things you need to do to fix ‘Command “python setup.py egg_info” failed with error code 1’ When Installing Python. Make sure to follow the ...