如何在WIndows上按计划执行脚本?

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

我在 Windows 上使用 Jupyter Notebook。我有几个 Python 脚本。我想每天执行两次,每周一次等等。我如何自动执行此任务?

此题针对Linux 如何按计划执行脚本?

当我尝试使用库计划时,出现“Windows 无法打开此类文件 (.ipynb)”

我尝试使用其他库,但它们适用于 Linux,而不是 Windows

这是示例:

def func(file_location):
    os.system(file_location)

file_location = 'path'
schedule.every(100).seconds.do(func(file_location))
automation scripting airflow schedule
1个回答
0
投票

尝试使用jupyter调度程序。 可以在此处找到如何安装和设置作业的视频演示:Youtube 演示视频

这将为您提供在本地 Windows 计算机上安排 python 脚本和笔记本的选项。

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