Thanks! This helped, however when I run the service, the script encounters errors like no module named MODULE_NAME. I suspected environment issues and I activate the environment first in the script but I still get the error. How can I overcome this?

Depending on what your script is supposed to do, instead of running it on your computer, you could run it on something like a Raspberry Pi.

You could also run it online. There are various services that allow you to do that relatively easily. However, I don’t think many of them will allow you to run a script 24/7 (especially for free) and it is quite likely that even if they did, your script would stop running every time there was a maintenance. You can circumvent this by getting your own server.