如何在Windows中的Pentaho(PDI)中使用“执行进程”来运行anaconda python?

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

我将通过在 pdi 和特定的 anaconda 环境中“执行进程”来运行 python 程序。

这是我的解决方案,但不起作用:

run_on_win = "C:\Users\x\Anaconda3\Scripts\activate.bat & python" 

api_call = my python file

Remains fields are my parameters

这些在 cmd 上成功运行的命令如何在 PDI 中引发此错误?

 Cannot run program "C:\Users\x\Anaconda3\Scripts\activate.bat & python": CreateProcess error=2, The system cannot find the file specified

python pentaho pentaho-spoon pentaho-data-integration
2个回答
0
投票

最后我创建了一个包含以下内容的 .bat 文件:

conda activate churn & python %*

我将该 .bat 文件的路径分配给 run_on_win 变量


-1
投票

尝试指定

python.exe

的完整路径
© www.soinside.com 2019 - 2024. All rights reserved.