Answer the question
In order to leave comments, you need to log in
How to make a Python program run even when the computer is asleep?
There is a Python application that runs in the background, but when no one is at the computer for a long time and the computer falls asleep, and the Python program turns off. Is there any way to solve this problem?
P.S. This is Mac
Answer the question
In order to leave comments, you need to log in
Place the program on a computer that does not fall asleep. There is heroku , and you can also buy a virtual machine.
Install the caffeine program on your Mac . Set it to work continuously without falling asleep. Run your scripts for execution and go to sleep.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question