First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!
1 | initial version | asked 2023-12-15 07:32:20 -0600 Anonymous |
hi, I am trying to run a python code in visual studio. I am getting an error 'import psspy could not be resolved'. Although my code is running. Then why I am seeing this issue? used the following: import os import sys pssedir = r"C:\Program Files\PTI\PSSE35\35.5\PSSBIN" sys.path.append(pssedir) os.environ['PATH'] = os.environ['PATH'] + ';' + psse_dir
pydir = r"C:\Program Files\PTI\PSSE35\35.5\PSSPY37" sys.path.append(pydir) os.environ['PATH'] = os.environ['PATH'] + ';' + py_dir
import psse35 import psspy
2 | No.2 Revision |
hi, I am trying to run a python code in visual studio. I am getting an error 'import psspy could not be resolved'. Although my code is running. Then why I am seeing this issue?
used the following:
following:
import os
import sys
pssedir psse_dir = r"C:\Program Files\PTI\PSSE35\35.5\PSSBIN"
sys.path.append(pssedir)
sys.path.append(psse_dir)
os.environ['PATH'] = os.environ['PATH'] + ';' + psse_dirpsse_dir
pydir
py_dir = r"C:\Program Files\PTI\PSSE35\35.5\PSSPY37"
sys.path.append(pydir)
sys.path.append(py_dir)
os.environ['PATH'] = os.environ['PATH'] + ';' + py_dirpy_dir
import psse35
import psspypsspy