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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

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