1

我正在使用 AutoSys 运行 python 脚本,但它给出了错误。问题在于python的版本,而不是调用python 3.8 auto sys是调用python 2.7如何在autosys中更改python的路径?

4

1 回答 1

1

选项:

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

乐意效劳 !!

于 2021-04-28T11:26:39.253 回答