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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

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
December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.