CSPM in Python

CSPM in Python

Install miniconda; add to PATH

Open Powershell

Set so every new PowerShell session knows Conda.

conda init powershell

Create environment

conda create -n cspm python=3.12 conda activate cspm python -m pip install --upgrade --no-cache-dir PySide6

conda init powershell

Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser -Force

python -m pip list

get pyside6 version (e.g., 6.9)

 

Then test

conda activate cspm python -m PySide6.QtWidgets --test # a tiny window should pop up

Here’s another test (from Powershell):

python - << "EOF" from PySide6.QtWidgets import QApplication, QLabel app = QApplication([]) QLabel("PySide6 OK").show() app.exec() EOF