Scripting a Substance Painter Plugin

For anyone who has worked with Python/Painter, Im new to Python and am trying to set up a script to interact with Substance Painter but Python complains that it can’t find the substance_painter module. From what I understand from the doc’s Ive read and tutorials Ive watched I just need to:

import substance_painter

and I have an extra path referencing the Painter module. What else could I be missing?

Are you running import substance_painter from Adobe Subtance? Or are you running it from, like, Visual Studio Code or the terminal? What is the exact error message it is giving you? Please copy and paste it here.

Thanks for the response. Im running it from vs code. The error it gives is:
" import substance_painter
ModuleNotFoundError: No module named ‘substance_painter’"