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 / How to incorporate Pyt...
Power Automate
Unanswered

How to incorporate Python Packages into Run Python Script Flows

(0) ShareShare
ReportReport
Posted on by
I'm trying to create a Python Script to automate certain aspects of data collection, and part of it involves using a Python Script with numerous packages so as to acquire and process the data. The problem is, I'm not sure how to add the relevant packages to the Python environment within Power Automate; it seems that the error is present due to the script being unable to import, to use the tangible example, when I run with: 
 
The error I get back is: 
 
import pandas as pd
 
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: No module named 'pyodbc'
 
I would guess that doing this would require I install the relevant packages into the environment, but it is unclear how that would be done here. Is there a Python Environment within Power Automate's files that must be accessed? Or do the packages need to be loaded and saved into the flow from elsewhere? 
I have the same question (7)

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 594

#2
Valantis Profile Picture

Valantis 328

#3
David_MA Profile Picture

David_MA 281 Super User 2026 Season 1

Last 30 days Overall leaderboard