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 Python3 script...
Power Automate
Unanswered

Running Python3 script via PowerShell action in Power Automate Desktop, with dependencies

(0) ShareShare
ReportReport
Posted on by 9

I'm really hoping someone understands how to solve this, because it's so hard to see what's actually happening inside Power Automate Desktop.

 

I am able to run Python3 scripts in PowerShell using a virtual environment for dependency resolution, like this:

C:\path\to\script\.venv\Scripts\Activate.ps1
python C:\path\to\script\script.py

 

I am also able to run Python3 scripts through PAD PowerShell actions, including the one in question, using the same code; however, it seems to be unable to resolve dependencies, as it only outputs a few test lines, and doesn't make it past the first library function call.

 

What might be happening?

How can I actually activate the virtual environment, if that's the problem?

Is there a different way I should be managing the dependencies instead? I've tried adding the site-packages folder to the user environment var PATH with no luck.

 

Thanks

I have the same question (0)

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