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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
wbo
New Member

Run Python scripts return error

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, 

wbo_3-1653979797617.png

 

 

I test the python code from the above docs, but error out, says "No module named 'pandas'".

 

wbo_2-1653979755233.png

 

wbo_0-1653979594363.png

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.

wbo_4-1653979919496.png

 

Could you please help why Power Bi still error out says no pandas installed?

 

Thank you

 

2 REPLIES 2
v-luwang-msft
Community Support
Community Support

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/53587001/missing-required-dependencies-numpy-for-anaconda-ver5-3... ,

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

amitchandak
Super User
Super User

@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

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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors