问题描述
我正在使用 AutoSys 运行 python 脚本,但它给出了错误。 问题出在python的版本上,不是调用python 3.8 auto sys是调用python 2.7 如何在autosys中更改python的路径?
解决方法
选项:
Step1:检查主机上的python版本。下面将确认相应 python 二进制文件的路径。
bash-3.2$ which python
/usr/bin/python
bash-3.2$ which python3
/Library/Frameworks/Python.framework/Versions/3.9/bin/python3
步骤 2:检查 Autosys 作业属性以使用 python for 2.x 和 python3 for 3.x
update_job: YourAutosysJobName
command: python3 /absolute_path/python_script.py
乐于助人!!