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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
torsten_FO
Helper I
Helper I

Python Script with pandas - numpy-problem

Hello,

I have a python script with the modul pandas. This script works fine in Anaconda Spyder. When I'm using this in Power BI, I get this error:

 

 

 

C:\Users\xxxx\Anaconda3\lib\site-packages\numpy\__init__.py:143: UserWarning: mkl-service package failed to import, therefore Intel(R) MKL initialization ensuring its correct out-of-the box operation under condition when Gnu OpenMP had already been loaded by Python process is not assured. Please install mkl-service package, see http://github.com/IntelPython/mkl-service
  from . import _distributor_init
Traceback (most recent call last):
  File "PythonScriptWrapper.PY", line 2, in <module>
    import os, pandas, matplotlib
  File "C:\Users\xxxx\Anaconda3\lib\site-packages\pandas\__init__.py", line 16, in <module>
    raise ImportError(
ImportError: Unable to import required dependencies:
numpy: 

IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE!

Importing the numpy C-extensions failed. This error can happen for
many reasons, often due to issues with your setup or how NumPy was
installed.

We have compiled some common reasons and troubleshooting tips at:

    https://numpy.org/devdocs/user/troubleshooting-importerror.html
Please note and check the following:

  * The Python version is: Python3.8 from "C:\Users\xxxx\Anaconda3\python.exe"
  * The NumPy version is: "1.20.1"
and make sure that they are the versions you expect.
Please carefully study the documentation linked above for further help.

 

 

 

The python and numpy version are:

- numpy 1.20.1

- python 3.8.8

 

What can I do here???

 

thx

Torsten

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@torsten_FO , Please refer to this video description, where I have disussed these issues

 

https://www.youtube.com/watch?v=5D0BkNsu5CM

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@torsten_FO , Please refer to this video description, where I have disussed these issues

 

https://www.youtube.com/watch?v=5D0BkNsu5CM

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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