Question: Now. When I run it. The error comes

> 
> 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
> 
> 
>

Answer: 
Try installing the pyqt under the ARM architecture as below

`arch -arm64 brew install pyqt`
I was struggling with installing PyQt5 on M1 mac with MacOS 12.6 (Monterey) inside a virtual environment (using python 3.9). The final solution that worked for me was to use conda for creating and activating the virtual environment.

`conda create --name venv python=3.9` `conda activate venv`

And then simply using conda to install PyQt5 as part of the pyqt package.

`conda install pyqt`