Cannot install psychopy in venv in vscode

Unfortunately, I followed the steps provided in this answer:

but I keep getting this error on MacOS. I downgraded Python to 3.8.10 as per some online recommendations:
AttributeError: module ‘pkgutil’ has no attribute ‘ImpImporter’. Did you mean: ‘zipimporter’?
Then I started getting another error message.
Full error:

/zyadelmahdy/Documents/the talking mouse (psychopy)/.venv/include" -I/Library/Frameworks/Python.framework/Versions/3.11/include/python3.11 -c Modules/objc/class-builder.m -o build/temp.macosx-10.9-universal2-cpython-311/Modules/objc/class-builder.o -g -fexceptions -Wall -Wstrict-prototypes -Wmissing-prototypes -Wformat=2 -W -Wpointer-arith -Wmissing-declarations -Wnested-externs -W -Wno-import -Wno-unknown-pragmas -Wshorten-64-to-32 -Werror -I/usr/include/ffi -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.1.sdk -DPyObjC_BUILD_RELEASE=1501
Modules/objc/class-builder.m:1773:17: error: code will never be executed [-Werror,-Wunreachable-code]
1773 | PyMem_Free(argbuf);
| ^~~~~~~~~~
Modules/objc/class-builder.m:1538:27: error: code will never be executed [-Werror,-Wunreachable-code]
1538 | theSelector = @selector(init);
| ^~~~~~~~~~~~~~~
2 errors generated.
error: command ‘/usr/bin/clang’ failed with exit code 1
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for pyobjc-core
Running setup.py clean for pyobjc-core
Failed to build wxPython pyobjc-core
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (wxPython, pyobjc-core)