Use Python-based PyCX simulator on MacOS M1

less than 1 minute read

Published:

This instruction will show how to apply PyCX simulation, a Python-based sample code repository for complex systems, on MacOS M1 through Jupyter Notebook.

Step 1: Direct to PyCX folder directory.

image

Step 2: Create a new Python notebook inside this directory.

image

Step 3: Install PyQt6.

!pip install PyQT6

image

Step 4: Find pycxsimulator.py file inside PyCX directory and add the codes at the top as below.

import PyQt6.QtCore
import os
os.environ["QT_API"] = "pyqt5"

image

Step 5: Launch any simulator.

!python ca-panic.py

image