Do you use some kind of logging or just print statements?
If you just use print statements there shouldn’t be a difference.
Could you provide a small script and give some information on the OS running on the server and your local machine?