'PyCharm Support for PyQt6 on M1
I've now swapped over to Pycharm and PyQt5 as it had better support an integration.
Our school has just upgraded to M1 chips and now my solution doesn't work.
I can download the latest version of python 3.10.2.
I then run the following command in terminal.
Python3.10.2 -m pip install PyQt6
To test the code I then type this into idle:
import sys
from PyQt6 import QtWidgets
app = QtWidgets.QApplication(sys.argv)
widget = QtWidgets.QWidget()
widget.resize(400, 200)
widget.setWindowTitle("This is PyQt Widget example")
widget.show()
exit(app.exec())
This all works perfectly and a window will be displayed.
I then open up Pycharm 2021.3 community edition.
Select the same interpreter and load global dependencies.
I run it and then this is the error I get

From what I can read PyQt6 supports both the Arm and 86 architecture from the same download source. Is it possible to force an interpreter to use just the arm or does PyCharm know to do this intuitively?
I'm trying to get students to use the drop and drag builder with QT designer first.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
