cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
udays
Regular Visitor

Python Script in PAD

How to run python3 scripts in Power Automate desktop.

1 ACCEPTED SOLUTION

Accepted Solutions
MRohanKumar
Frequent Visitor

@udays  You are right, so you can run through the "Run PowerShell Script" or CMD activity.
I have tried the PowerShell activity, and it is working properly .

MRohanKumar_0-1644923608689.png

 

View solution in original post

14 REPLIES 14
MRohanKumar
Frequent Visitor

Hi,
You can also use the "Run Python Script" activity, and you can also try PowerShell or CMD . 

udays
Regular Visitor

  1. Hi MRohanKumar, thanks for the reply
    i tried "Run python script" but it supports only python 2 code. isn't it?
kostasc
Microsoft
Microsoft

Python 3 is not supported at the moment. We do support Python 2.

MRohanKumar
Frequent Visitor

@udays  You are right, so you can run through the "Run PowerShell Script" or CMD activity.
I have tried the PowerShell activity, and it is working properly .

MRohanKumar_0-1644923608689.png

 

udays
Regular Visitor

Python 2 is almost dead, so there must be a way to run python 3 code. please help if you know

@MRohanKumar , can you please explain, what does this two variable %PythonPath% and %DailyChargeEditLong% contains?

@udays 
The First Variable Contain the Python execution file path
Ex->   %PythonPath% -: C:\Users\Rohan\AppData\Local\Programs\Python\Python310\python.exe
And second variable contain the the path of your python file 
%DailyChargeEditLong% -:  C:\Users\Rohan\Desktop\PyFiles\ABC.py

 

udays
Regular Visitor

Thankyou @MRohanKumar, i tried your solution. It is working👍

JimatRPath
New Member

I will echo others in asking when Python 3 will be supported?  Python 2 is ancient.  Just getting up to V3 is 15 years ago now.

JimatRPath_0-1646843526471.png

 

Hear, hear!

@kostasc 

Python 2 has been end of life for 2 years. No one uses it anymore. When will we see Python 3 coming to PAD?

kinuasa
Resolver I
Resolver I

PAD uses IronPython.
IronPython has just recently released version 3.4.0-beta1.
I think that Python 3 will be included in the PAD, only after a stable version is released🤔

JimatRPath
New Member

Why does MS not call out IronPython v. Python?  That would make it clear and obvious that it is a different language.

 

Second you say "Python 3 will be.....after a stable version is released."  Do you mean IronPython, or Python.  If Python, see below.  Has been a 3.... release in stable versino for a long time.

 

JimatRPath_0-1652188242247.png

 

Thank you for your reply.
Stable version of Python 3 has already been released as you said.
I was posting about IronPython🙂

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Top Solution Authors
Top Kudoed Authors
Users online (1,501)