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
Regular Visitor

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 III
Resolver III

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
Regular Visitor

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 Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (3,245)