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 Platform Community / Forums / Power Automate / Running python 3 scrip...
Power Automate
Unanswered

Running python 3 script from power automate desktop

(0) ShareShare
ReportReport
Posted on by 18

Should I install python 3 or python 2 installed in my local machine to use it in power automate desktop ???

  • NikosMoutzou Profile Picture
    Microsoft Employee on at

    Hello @Pavibhau_3698 !

     

    Power Automate Desktop currently supports IronPython (v2.7). Python v3 is in the roadmap and will be supported in the near future.

  • Pavibhau_3698 Profile Picture
    18 on at

    should I install python 2.7 in my local system if I need to run python script from power automate desktop 

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hello @Pavibhau_3698 

     

    You don't have to install Python by yourself.

    The PAD app has out-of-the-box Python support.

  • Pavibhau_3698 Profile Picture
    18 on at

    when I use import os in the python script  in PAD I get this error ,

    Traceback (most recent call last): 

      File "<string>", line 1, in <module> 

    ImportError: No module named os 

    If I want to import os package I need to include the path(s) of folder(s) where external Python modules lie else it throws an above error .

    To avoid this above error I need to install Python 2.7 in my local machine(laptop) and provide the path of  Lib folder  [C:\Python27\Lib] then the python scripts executes. 

     

    So Im installing python 2.7  to import module , so is this the only way or are there any alternatives ???

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at
  • saadkhan Profile Picture
    6 on at

    "Run power shell script" should be able to execute Python 3

  • Fenix Profile Picture
    2 on at

    May I know the new roadmap? Thanks.

  • Dion_tw Profile Picture
    66 on at

    Where can i find this roadmap? Can you send me a link? Would like to know when this will be implemented.

  • detrius67 Profile Picture
    4 on at

    @NikosMoutzou wrote:

    Hello @Pavibhau_3698 !

     

    Power Automate Desktop currently supports IronPython (v2.7). Python v3 is in the roadmap and will be supported in the near future.


    This comment is almost 2 years.  Can we get an indication of how "near" we are now please?

  • AntonacciDavide Profile Picture
    on at

    If you use a Run DOS command you can run any version you want.

    Dos command : directory\file.py
    working folder : directory folder

     

    If you need to run it with options, create a bat file and set it as an administrator executable

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

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 243 Super User 2026 Season 2

#2
David_MA Profile Picture

David_MA 211 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 190

Last 30 days Overall leaderboard