Nuitka 和 numpy-mkl 问题,同时构建可执行文件

问题描述

我想创建我的程序的可执行文件。我已经安装了 nuitka 并简单地在命令提示Nuitka My_Program.py 中写入。所以,我创建了我的可执行文件。当我在命令提示My_Program.exe 中写入时,它成功运行。另一方面,当我想通过单击运行它时,出现此错误

numpy\__init__.py:140: 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

我该如何改进它?谢谢!

解决方法

看看这些网站,看看是否对您有帮助。

https://github.com/numpy/numpy/issues/15590

https://community.powerbi.com/t5/Desktop/Can-not-run-Python-script-in-powerbi-desktop/m-p/1340532#M577363