Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowJuly 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more
Dear all:
I am planning to run python script in the data source.
I followed up the tutorial on Power IB docs,
https://docs.microsoft.com/en-us/power-bi/connect-data/desktop-python-scripts
I checked my python installation path in the option menu,
I test the python code from the above docs, but error out, says "No module named 'pandas'".
But I am 100% sure panda is installed as it is so common to have this package installed in python, I have also installed matplotlib pacakge as well.
Could you please help why Power Bi still error out says no pandas installed?
Thank you
Hi @wbo ,
ou can upgrade the Python , pandas and numpy to the latest version in cmd prompt or Anaconda prompt .
1.use cmd prompt below:
pip upgrade python
pip uninstall pandas
pip uninstall numpy
pip install pandas
pip install numpy
2.use conda prompt below:
conda upgrade python
conda install pandas
conda install numpy
There some similar cases you can refer to :
https://stackoverflow.com/questions/41859939/python-pandas-missing-required-dependencies-numpy-1,
https://stackoverflow.com/questions/44220798/pandas-missing-required-dependencies-numpy ,
https://stackoverflow.com/questions/42973666/importerror-missing-required-dependencies-numpy .
Did I answer your question? Mark my post as a solution!
Best Regards
Lucien
@wbo , I have discussed the issue and all installation steps in my video and given cmd in the description
ow to make Python work with Power BI: https://youtu.be/5D0BkNsu5CM
| User | Count |
|---|---|
| 21 | |
| 19 | |
| 17 | |
| 17 | |
| 11 |
| User | Count |
|---|---|
| 60 | |
| 55 | |
| 47 | |
| 42 | |
| 37 |