【问题标题】:Scheduled tasks python running with IDLE(python GUI) Windows server 2012使用 IDLE(python GUI)Windows server 2012 运行的计划任务 python
【发布时间】:2017-03-04 13:29:25
【问题描述】:

如何设置任务管理器以使用 IDLE (Python GUI) 或 python windows shell 运行我的 python 脚本?

【问题讨论】:

  • IDLE 是一个用于开发程序的 IDE,而不是用于在生产环境中运行它们。只需使用 python.exe 和所需的任何参数运行您的脚本。

标签: python windows-server-2012 python-idle taskmanager


【解决方案1】:

似乎我不需要在 python windows shell 上运行我的 python 脚本,我只是删除了将显示在 cmd 或 shell 上的任何 prints,而是将它们存储在变量中,然后设置我的任务调度程序

程序/脚本:

C:\python27\python.exe

添加参数:

[my script including its directory] C:\scrape.py

【讨论】:

    猜你喜欢
    • 2016-03-05
    • 2015-08-08
    • 1970-01-01
    • 2021-10-22
    • 2016-03-08
    • 1970-01-01
    • 2012-08-11
    • 2011-08-04
    相关资源
    最近更新 更多