一、问题描述
报错为
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 module = self._system_import(name, *args, **kwargs) }
二、问题分析
1.检查包是否存在
这个包早就在本环境中安装了:
2.考虑环境是否适配
本环境的Python v3.9.13、numpy v1.23.1,官方文档表示版本是适配的:
三·、解决方案
强制重新安装numpy
conda install numpy --force-reinstall
问题解决