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

Notifications

Announcements

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 (5)

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 519 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 296 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard