mkl-service package failed to import, therefore Intel(R) MKL initialization ensuring its correct out-of-the box operation under condition when Gnu

Question:

When I go to run a python code directly through the terminal it gives me this error, I’ve already tried to reinstall numpy and it didn’t work!

And I tried to install mlk service returns the same error. Can someone help me ?

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 "c:Usersteste.userDesktopProject-pythonteste.py", line 4, in <module>
    import pandas as pd
  File "C:Usersteste.userAnaconda3libsite-packagespandas__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.9 from "C:Usersteste.userAnaconda3python.exe"
  * The NumPy version is: "1.21.5"

and make sure that they are the versions you expect.
Please carefully study the documentation linked above for further help.

Original error was: DLL load failed while importing _multiarray_umath: The specified module could not be found.

Asked By: Zan

||

Answers:

Can be solved by resetting package configuration by force reinstall of numpy.

conda install numpy --force-reinstall
Answered By: Indiano

I was able to fix it by running the following commands to uninstall and reinstall the packages

pip uninstall matplotlib
pip uninstall pillow
pip uninstall numpy
pip install matplotlib
pip install pillow
pip install numpy
Answered By: Charith Jayasanka

Thanks for help! I used this:

I was able to fix it by running the following commands to uninstall and reinstall the packages

pip uninstall matplotlib
pip uninstall pillow
pip uninstall numpy
pip install matplotlib
pip install pillow
pip install numpy

Answered By: Patryk Zarzycki
Categories: questions Tags: ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.