Linux使用crontab执行shell脚本,脚本内报错python3: command not found

276 阅读1分钟

错误原因:

  • crontab设置后python3无法引入(个别情况,详情未探讨)

修改方式:

  • which python3
  • 将python3修改为绝对路径