title | date | permalink | excerpt_separator | toc | tags | |
---|---|---|---|---|---|---|
Use Python-based PyCX simulator on MacOS M1 |
2023-03-07 |
/posts/2023/03-PyCX |
<!--more--> |
true |
|
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.
Step 2: Create a new Python notebook inside this directory.
Step 3: Install PyQt6.
!pip install PyQT6
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"
Step 5: Launch any simulator.
!python ca-panic.py