I’m currently working on an automation project in UiPath Studio (Community Edition) that requires running a Python script via the Python Scope activity. However, I keep getting the following error:
Python Scope: The specified Python path is not valid: C:\Program Files\Python39\python.exe
Here’s what I’ve tried so far:
Installed and reinstalled multiple Python versions (3.10, 3.12, 3.9), all 64-bit versions
Verified that python.exe can be opened manually from the path
Set the Python path in UiPath exactly as shown in the installed directory
Restarted UiPath and my laptop
Made sure Python is added to PATH and that pip works
Created a simple script that works when run from VS Code or terminal
Despite all this, the Python Scope activity still doesn’t recognize the Python path.
I need Python Scope to run a Prophet time series forecasting script for predicting client transactions in 2025, and I plan to integrate the output with the rest of the automation flow in UiPath.
Any help would be greatly appreciated. Thank you in advance!
There is a sample project at the bottom of the page with a sample configuration. Could you please double-check your configuration against this sample ?
Thank you so much for your attention and support — really appreciate it!
I’ll definitely take a closer look at the sample project and compare it with my current configuration.
Open the exception detaila from locals pane by running in debug mode to check the full error that might give correct issue
First try to run a simple python script with no imports and simple code like addition of number or so to check if setup is proper
As per error looks like the return or import is failing ..import might fail if library path is not provided or if there are multiple instances of python