I want to execute the code
import os, sys
import psse3504
import psspy
yields the error that neither psse3504 nor psspy can be found: ModuleNotFoundError: No module named 'psse3504'
I did some googling and it seems that very often there is a path issue, compare for example here https://psspy.org/psse-help-forum/question/122/how-do-i-import-the-psspy-module-in-a-python-script/ . But unfortunately also the code
import math
import os
import sys
import numpy as np
import pandas as pd
sys.path.insert(0, r"C:Program FilesPTIPSSE3535.4PSSPY39") # xx --> substitute xx with Version Number here.
os.environ['PATH'] = r"C:Program FilesPTIPSSE3535.4PSSPY39" + ";" + os.environ['PATH']
import psse3504
import psspy
Does not solve the issue. Maybe the reason is that I do not even have it installed? Because if I run
python -m psspy
on the shell, I also get an error?