pip install virtualenv
python3 -m venv myenv
source myenv/bin/activate
pip3 install psutil
pip3 install PyQt6
pip3 install PySide2
chmod +x ./runscript
./runscript
Can uncomment and adjust for loop to run however many times you want. If on local machine that has xdg installed, can also uncomment that line to have the image opened once the script is complete. If on a non-local machine, leave commented and retreive the generated image to local system before opening.