本文主要是介绍UserWarning: mkl-service package failed to import,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
安装完成anaconda,并设置了两个环境变量
之后再控制台运行python环境,输入import numpy as np,提示错误
D:\InstallFolder\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 "D:\InstallFolder\Anaconda3\lib\site-packages\numpy\core\__init__.py", line 22, in <module>
from . import multiarray
File "D:\InstallFolder\Anaconda3\lib\site-packages\numpy\core\multiarray.py", line 12, in <module>
from . import overrides
File "D:\InstallFolder\Anaconda3\lib\site-packages\numpy\core\overrides.py", line 7, in <module>
from numpy.core._multiarray_umath import (
ImportError: DLL load failed while importing _multiarray_umath: 找不到指定的模块。
解决办法:
对anaconda的环境变量进行配置,有如下三项
这篇关于UserWarning: mkl-service package failed to import的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!