now. when i run it. the error conmes ImportError: dlopen(/Users/v/Library/Python/3.8/lib/python/site-packages/PyQt5/QtWidgets.abi3.so, 2): no suitable image found. Did find: /Users/v/Library/Python/3.8/lib/python/site-packages/PyQt5/QtWidgets.abi3.so: mach-o, but wrong architecture /Users/v/Library/Python/3.8/lib/python/site-packages/PyQt5/QtWidgets.abi3.so: mach-o, but wrong architecture
After hours of trial and error, I was finally able to solve this. My successful configuration is:
/usr/bin/python3 -m venv env
source env/bin/activate
pip install --upgrade pip
pip install PyQt5