How can I use custom modules in python?

Im using this addon (component?) to run python scripts. I’ve tried using pip3 to install the modules over ssh but that will not work.

From the doc you linked

It is not possible to use Python imports with this integration. If you want to do more advanced scripts, you can take a look at AppDaemon or pyscript

In other words, even if you figure out how to install pip packages it won’t matter. You can’t use import statements so you can’t use them. You should check out one of the linked alternatives