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

July 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more

Reply
T_Man
New Member

Unable to run Python script in PowerBI (ModuleNotFound)

I have Python v3.10 installed using PyCharm as my IDE and have installed pandas, matplotlib but when trying run a Python script in PowerBI it states that the pandas module is not found.

2022-05-12_07h43_27.png

2022-05-12_07h43_53.png

4 REPLIES 4
SeydaOztop
Regular Visitor

Hello, I want to transfer the data I wrote and prepared in PyCharm to PowerBI. However, Pycharm does not see my file. Can I connect only exe to PowerBI? How can I transfer the data I prepared in Pycharm to PowerBI? I get the error in the screenshot while trying to connect. I request your help.

powerbı.png

Anonymous
Not applicable

Hi @T_Man ,

 

Please take a look at these topics that have similar issue and check if the issue could be solved.

https://community.powerbi.com/t5/Desktop/Can-t-run-any-Python-script-in-Power-BI-Desktop/m-p/706267 

https://community.powerbi.com/t5/Desktop/Microsoft-PowerBI-Scripting-Python-Exceptions/m-p/850714 

 

Best Regards,

Jay

T_Man
New Member

@amitchandak  Thanks! I followed along and reinstalled the libraries but I am still getting the same error. I noticed that you use Anaconda is this a requirement?

amitchandak
Super User
Super User

@T_Man , Reinstall those libraries. In this video description, I have mentioned errors and solutions and links for that

 

How to create python visual: https://youtu.be/rX3-G8u5fwc

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Fabric Community Sticker Design Challenge Barcelona Carousel

Fabric Community Sticker Challenge - Barcelona 2026

If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!

July Power BI Update Carousel

Power BI Monthly Update - July 2026

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

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors