Python Pyinstaller 3.1 Intel MKL严重错误:无法加载mkl_intel_thread.dll [英] Python Pyinstaller 3.1 Intel MKL FATAL ERROR: Cannot load mkl_intel_thread.dll

查看:896
本文介绍了Python Pyinstaller 3.1 Intel MKL严重错误:无法加载mkl_intel_thread.dll的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,程序员们,所以我很难让python .exe正常运行.我正在使用Anaconda 3和最新版本的pyinstaller,当我将其作为.py运行时,我的代码没有什么奇怪的事情,但是为了发行,我需要将其作为".exe".每当我尝试运行.exe时,我得到的只是错误:

Hello fellow programmers, so I am having a spot of trouble getting this python .exe to function properly. I am using Anaconda 3 and the latest version of pyinstaller, and my code has nothing odd going on when I run it as a .py, but for the sake of distribution I need to have it as a ".exe". Whenever I try to run my .exe all I get is the error:

英特尔MKL致命错误:无法加载mkl_intel_thread.dll.

Intel MKL FATAL ERROR: Cannot load mkl_intel_thread.dll.

,然后关闭.同样,如果我从同一命令窗口以.py格式运行python代码,我就不会遇到这个问题.

and then it closes. Again, I am not having this problem if I run my python code in .py format from the same command window.

任何帮助将不胜感激,谢谢!

Any help would be greatly appreciated, thank you!

推荐答案

该错误表示该程序无法在其库路径下找到mkl库文件,这是您需要查找的文件.

The error means that the program couldn't find mkl library files under its library path, which is what you need to make it find.

在具有numpy + mkl的Windows上运行matplotlib脚本时出现问题,并且通过将site-packages/numpy/core中以"mkl_"开头的文件复制到python.exe根目录来解决此问题.

I had the issue when running matplotlib scripts on windows with numpy+mkl, and I got it fixed by copying files that start with "mkl_" in site-packages/numpy/core to my python.exe root.

我对编译后的python程序不熟悉,但是想法应该是相同的.由于存在此错误,因此我假设您正在使用mkl版本软件包.您需要找出.exe尝试从中加载库的位置(可能是可执行文件所在的路径),然后在其中复制所有包的所有mkl dll.或者可能有类似编译选项"之类的东西,它允许您配置路径等.

I'm not familiar with compiled python program but the idea should be the same. Since you had this error I assume you are using mkl version packages. You need to figure out where the .exe tries to load libraries from(could be the same path where the executable is located), and copy all the mkl dll's of any package there. Or there could be something like "compile options" that allows you to configure the path etc.

希望它对您有帮助.

这篇关于Python Pyinstaller 3.1 Intel MKL严重错误:无法加载mkl_intel_thread.dll的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆