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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
mohamedsayed
New Member

when i use python script in power bi i fond the follwing error :

Details: "ADO.NET: Python script error.
<pi>Traceback (most recent call last):
File "C:\Users\IT\PythonScriptWrapper_4a63782b-5025-4e0b-9337-31716da2cf53\PythonScriptWrapper.PY", line 2, in <module>
import os, pandas, matplotlib
ModuleNotFoundError: No module named 'pandas'
</pi>"

 

2 REPLIES 2
Anonymous
Not applicable

Hi @mohamedsayed 

 

Thank you very much rajendraongole1 for your prompt reply.

 

Can you tell me if your problem is solved? If yes, please accept it as solution.

 

Regards,

Nono Chen

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

rajendraongole1
Super User
Super User

Hi @mohamedsayed - Power BI requires specific Python packages to be installed in your Python environment. To resolve this issue, you need to install the pandas package in the Python environment Power BI is referencing.In Power BI Desktop, go to File > Options and settings > Options. Under Global > Python scripting, check the Python home directory to see which version of Python Power BI is using.

pip install pandas

pip install matplotlib

Restart Power BI: After installing the packages, restart Power BI to ensure it recognizes the new libraries.

rajendraongole1_0-1726477289632.png

 

Hope the above information helps. 

 

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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