Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
jaryszek
Resident Rockstar
Resident Rockstar

Python script error

Hi,

I am trying to run python script from Power BI.

I set up path to python within power bi:
C:\Users\User>where python
C:\Users\User\AppData\Local\Microsoft\WindowsApps\python.exe

 

and run example script:
import pandas as pd
data = [['Alex',10],['Bob',12],['Clarke',13]]
df = pd.DataFrame(data,columns=['Name','Age'])
print (df)

but i got error:

jaryszek_0-1742482770714.png

 

Can anybody help?
The purpose is to get windows environment variable.

Best,
Jacek

 

1 ACCEPTED SOLUTION

Some suggestions here


Did I answer your question?
Please help by clicking the thumbs up button and mark my post as a solution!

View solution in original post

3 REPLIES 3
Deku
Super User
Super User

Have you pip installed those libraries in your environment?


Did I answer your question?
Please help by clicking the thumbs up button and mark my post as a solution!
jaryszek
Resident Rockstar
Resident Rockstar

Hello,


I have installed :

jaryszek_0-1742546644081.png

 

 

Some suggestions here


Did I answer your question?
Please help by clicking the thumbs up button and mark my post as a solution!

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.