title: mach-o file, but is an incompatible architecture have 'x86_64', need 'arm64e' M1 MAC
body: <pre class="lang-py prettyprint-override"><code>from PyQt6.QtWidgets import *
  
  from model.Department import Department
  from view.main_window import Ui_Form
  from model.Department import Department, Employee
  
  class Homewidget(QWidget,Ui_Form):
  
      def __init__(self):
          QWidget.__init___(self)
          self.setupUi(self)
  
          self.depts = Department.get_all_depts()
          self.load_depts
  
          self.emps= Employee.get_all_emps()
          self.load_emps
  
          self.cb_depts.currentIndexChanged.connect(self.filter_emps_by_dept)
          self.le_search.textChanged.connect(self.filter_emps_by_name)
  
  
      def load_depts(self):
          names = [d.dept_name for d in self.depts]
          self.cb_depts.addItems(names)
      def load_emps(self):
          self.tb_emps.setRowCount(0)
          for i, e in self.emps:
              self.tb_emps.insertRow(i)
              for j, info in enumerate(e.__dict__.values()):
                  self.tb_emps.setItem(i , j, QTableWidgetItem(str(info)))
  
      def filter_emps_by_dept(self, idx):
                      self.load_emps()
                      if idx != 0:
                          dept = self.depts[idx - 1]
                          for i, e in enumerate(self.emps):
                              if e.dept_id != dept.dept_id:
                                  self.tb_emps.hideRow(i)
      def filter_emps_by_name(self):
          self.load_emps()
          query = self.le_search.text().lower()
          if query != &quot;&quot;:
              for i , e in enumerate(self.emps):
                  if not e.emp_name.lower().startswith(query):
                      self.tb_emps.hideRow(i)}
  
  app = QApplication([])
  window = Homewidget()
  window.show()
  app.exec()
  </code></pre>
  <p>this is the error I'm facing on my m1 MacBook Pro Monetery can't run my GUI project for school .
  the PyQt6 comes with default in arm64 and I'm not sure but I think my software is arm64e I am  new to osx idk what to do can I change the software from arm64e to arm64 ?</p>
  <p>this is the error I'm facing below...</p>
  <blockquote>
  <p>ahmed@Ahmeds-MacBook-Pro hr_system % /usr/local/bin/python3 &gt;/Users/ahmed/hr_system/app.py
  Traceback (most recent call last):
  File &quot;/Users/ahmed/hr_system/app.py&quot;, line 1, in 
  from PyQt6.QtWidgets import *
  ImportError: &gt;dlopen(/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/sit&gt;e-packages/PyQt6/QtWidgets.abi3.so, 0x0002): Library not loaded: &gt;@rpath/QtWidgets.framework/Versions/A/QtWidgets
  Referenced from: &gt;/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-&gt;packages/PyQt6/QtWidgets.abi3.so
  Reason: tried: &gt;'/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-&gt;packages/PyQt6/Qt6/lib/QtWidgets.framework/Versions/A/QtWidgets' (mach-o &gt;file, but is an incompatible architecture (have 'x86_64', need 'arm64e')), &gt;'/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-&gt;packages/PyQt6/Qt6/lib/QtWidgets.framework/Versions/A/QtWidgets' (mach-o &gt;file, but is an incompatible architecture (have 'x86_64', need 'arm64e')), &gt;'/System/Library/Frameworks/QtWidgets.framework/Versions/A/QtWidgets' (no &gt;such file)</p>
  </blockquote>