在Windows 10中计划Python脚本可执行文件

问题描述 投票:0回答:1

我正在尝试计划已转换为.exe文件的python脚本,但由于某种原因它没有启动。尽管程序似乎确实打开了cmd类型的窗口,但是该脚本不起作用。下面我概述了我采取的步骤,如果我错过了这里的内容,请告知我。

当我双击可执行文件时,它确实会产生结果。

enter image description here下一个enter image description hereenter image description hereenter image description hereenter image description hereenter image description here

python-3.x scheduled-tasks pyinstaller executable windows-task-scheduler
1个回答
1
投票

应为以下之一:1.任务计划程序中的任务可能无法运行同一帐户。考虑以root / administrator帐户运行它。2.考虑使用--uac-admin生成pyinstaller可执行文件,这将允许您以管理员身份运行可执行文件。

您还可以通过将输出传递到文件中来调试问题,该文件将使您看到错误消息。

© www.soinside.com 2019 - 2024. All rights reserved.