web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Automate
Answered

Python Script in PAD

(0) ShareShare
ReportReport
Posted on by 13

How to run python3 scripts in Power Automate desktop.

I have the same question (0)
  • MRohanKumar Profile Picture
    26 on at

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

  • udays Profile Picture
    13 on at
    1. Hi MRohanKumar, thanks for the reply
      i tried "Run python script" but it supports only python 2 code. isn't it?
  • kostasc Profile Picture
    Microsoft Employee on at

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

  • Verified answer
    MRohanKumar Profile Picture
    26 on at

    @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 Profile Picture
    13 on at

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

  • udays Profile Picture
    13 on at

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

  • MRohanKumar Profile Picture
    26 on at

    @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 Profile Picture
    13 on at

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

  • JimatRPath Profile Picture
    23 on at

    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

     

  • Karlis Profile Picture
    23 on at

    Hear, hear!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 284 Super User 2026 Season 2

#2
trice602 Profile Picture

trice602 188 Super User 2026 Season 2

#3
11manish Profile Picture

11manish 144 Super User 2026 Season 2

Last 30 days Overall leaderboard