我有一个Launch,它每10秒使用/usr/bin/python3运行一个python文件。下面是在我的plist上调用launchctl list
的输出:
{
"LimitLoadToSessionType" = "Aqua";
"Label" = "com.bob.weather";
"OnDemand" = false;
"LastExitStatus" = 256;
"Program" = "/usr/bin/python3";
"ProgramArguments" = (
"/usr/bin/python3";
"/Users/bob/Dev/OpenTheWindow/weather.py";
);
};
我的代码在手动执行时运行良好
当我检查控制台时,它显示Service exited with abnormal code: 1
。它仅在导入中有requests
时发生。其他模块json
和subprocess
可以很好地导入。我认为这是因为requests
安装了pip。
我应该怎么做才能使requests
被认可
目前没有回答
相关问题 更多 >
编程相关推荐