Pyinstaller generated exe doesn't run with Windows Task Scheduler
问题 I generated an exe from Pyinstaller, this works perfectly when I double click it but when I try to run it via Task scheduler it never runs but in the history it shows "The operation completed successfully". To be sure if it ran, I'm logging some text into a log file when the exe runs which never happens via Task scheduler. Below is the simple snippet of my Python program. import os import threading import sys import time from datetime import datetime from dateutil import tz #Auto-detect zones