The CreatorCon Call for Content is officially open! Get started here.

Run Python File from Mid-Server using flow

Syed zabiullah
Tera Expert

Hi Team, 
I created script action in flow that run python script file in Mid Server, I got error like this "

'python' is not recognized as an internal or external command,
operable program or batch file.", but I installed in python in host machine below I have share screenshot of flow and error 

"

Syedzabiullah_0-1715792908076.png

 

Syedzabiullah_1-1715793590455.pngSyedzabiullah_2-1715793622008.png

suggest me any solution for this 



8 REPLIES 8

Gangadhar Ravi
Giga Sage

on line 11 Try "py" instead of "python".

Hi @Gangadhar Ravi 
   I tried that also but is show an error 

Syedzabiullah_0-1715833722169.png

 

Filipe Cruz
Kilo Sage

Hi,
Most probably "python" is not declared as an environment variable in your windows machine.
Follow this steps to do it:

windows set environment variable 

If that does not work, try to update your command to be c:\windows\system32\python --version or locate the folder in which python is installed and put it in your command like 

cd <path_to_python_folder_name> | python --version

Let me know if that worked!

Please, don't forget to mark my answer as correct if it solves your issue or mark it as helpful if it is relevant for you!

Best Regards,

Filipe Cruz

Hi @Filipe Cruz 
I tried this way as well 
C:\test\test\AppData\Local\Programs\Python\Python312\python.exe py --version

Syedzabiullah_1-1715834519154.png