Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin 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.
My steps are below:
Click OK.
Click OK.
It gives below:
Though I tested "import os" is OK above, so where is the break? So where did I miss out certain steps?
Solved! Go to Solution.
Hi @Anonymous ,
The Power BI Python integration requires the installation of two Python packages:
The error “No module named pandas ” will occur when there is no pandas library in your environment IE the pandas module is either not installed or there is an issue while downloading the module right.
So in a console or shell, use the pip command-line tool to install the two packages. The pip tool is packaged with more recent Python versions.
pip install pandas
pip install matplotlib
For more information, please refer to:
Run Python Scripts in Power BI Desktop - Power BI | Microsoft Docs
Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
The Power BI Python integration requires the installation of two Python packages:
The error “No module named pandas ” will occur when there is no pandas library in your environment IE the pandas module is either not installed or there is an issue while downloading the module right.
So in a console or shell, use the pip command-line tool to install the two packages. The pip tool is packaged with more recent Python versions.
pip install pandas
pip install matplotlib
For more information, please refer to:
Run Python Scripts in Power BI Desktop - Power BI | Microsoft Docs
Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Anonymous , In the video and description I have given problems and their solution, refer if those can help
How to make Python work with Power BI: https://youtu.be/5D0BkNsu5CM
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
72 | |
71 | |
57 | |
38 | |
36 |
User | Count |
---|---|
81 | |
67 | |
62 | |
46 | |
45 |