Forum Discussion
Can't run any Python script in Power BI Desktop
- 7 years ago
Hi Anonymous ,
You 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 numpy2.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 .
Best Regards,
Amy
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi Anonymous ,
You can refer to the links https://docs.microsoft.com/en-us/power-bi/desktop-python-scripts, https://www.sqlshack.com/power-bi-desktop-and-python-like-peanut-butter-and-chocolate/ , pay attention to the steps and key points.
Please understand that this link is provided “AS IS” with no warranties or guarantees of content changes, and confers no rights.
Or could you please show us the error message for further analysis?
Best Regards,
Amy
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Anonymous7 years agoNot applicable
This is the error message when i try to paste my script into power bi.
I do this with the Get Data option and use python script.
I use anaconda and i should have alle the packages it mentioned above to import.
- v-xicai7 years ago
Community Support
Hi Anonymous ,
You 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 numpy2.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 .
Best Regards,
Amy
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.