Python 序数242在动态链接库Anaconda3\Library\bin\mkl_intel_thread.dll中找不到
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/53026985/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
The ordinal 242 could not be located in the dynamic link library Anaconda3\Library\bin\mkl_intel_thread.dll
提问by John
I have just installed Anaconda 5.3 64-bit (Anaconda3-5.3.0-Windows-x86_64) on Windows 10 and am getting this error when trying to run Spyder.
我刚刚在 Windows 10 上安装了 Anaconda 5.3 64 位 (Anaconda3-5.3.0-Windows-x86_64),并且在尝试运行 Spyder 时出现此错误。
pythonw.exe - Ordinal Not Found
The ordinal could not be located in the dynamic link library C:\Users\username\Anaconda3\Library\bin\mkl_intel_thread.dll.
pythonw.exe - 未找到序数
序号无法位于动态链接库 C:\Users\username\Anaconda3\Library\bin\mkl_intel_thread.dll 中。
I used Dependency Walkerto view the functions in the DLL and see that ordinal 242 is there. The function associated with ordinal 242 is mkl_blas_zherk.
我使用Dependency Walker查看 DLL 中的函数,看到序号 242 在那里。与序号 242 相关的函数是 mkl_blas_zherk。
Could anyone help me fix this or direct me to a resource to help me figure it out myself?
谁能帮我解决这个问题或指导我找到一个资源来帮助我自己解决这个问题?
回答by Paul Williams
回答by Azrael_DD
This is not a proper answer, but for me (having the exact same problem) a workaround was to downgrade "anaconda" to 5.2.0 with the Anaconda Navigator. If that works for you, too, you could start upgrading individual packages to see when the error reappears. Maybe it is a bug in one of the packages, not a problem with our systems.
这不是一个正确的答案,但对我(有完全相同的问题)来说,解决方法是使用 Anaconda Navigator 将“anaconda”降级到 5.2.0。如果这也适用于您,您可以开始升级单个软件包以查看错误何时再次出现。也许这是其中一个软件包中的错误,而不是我们系统的问题。
Edit: Here are some links to similar or related discussions:
编辑:以下是一些类似或相关讨论的链接:
More edit: It also helped me to find the following files in "C:\Windows\System32" and rename them (I just appended "_renamed" to the file name).
更多编辑:它还帮助我在“C:\Windows\System32”中找到以下文件并重命名它们(我只是在文件名后附加了“_renamed”)。
- mkl_core.dll
- mkl_def.dll
- mkl_intel_thread.dll
- mkl_core.dll
- mkl_def.dll
- mkl_intel_thread.dll
If I understand correctly, Python will use those instead of the ones in the Anaconda folder, which can cause problems.
如果我理解正确,Python 将使用那些而不是 Anaconda 文件夹中的那些,这可能会导致问题。
回答by Tirth Shah
['System32\libiomp5md.dll', 'System32\mkl_core.dll',
'System32\mkl_def.dll','System32\mkl_intel_thread.dll',
'SysWOW64\libiomp5md.dll','SysWOW64\mkl_core.dll','SysWOW64\mkl_intel_thread.dll',
'SysWOW64\mkl_p4.dll', 'SysWOW64\mkl_p4m.dll','SysWOW64\mkl_p4m3.dll',
'SysWOW64\mkl_p4p.dll']
Remove all these dll files from C:\Windows\SysWOW64 and C:\Windows\System32
从 C:\Windows\SysWOW64 和 C:\Windows\System32 中删除所有这些 dll 文件
Just do this and restart the spyder once again and hurrrahhhh!!! ur problem will be solved and spyder will open without showing any ordinal 242 error............just do it it is the only solution..
只需执行此操作并再次重新启动 spyder,然后哇哇哇哇哇哇哇哇哇哇哇哇哇哇哇哇哇哇哇哇哇哇哇哇哇哇哇哇哇哇哇哇哇哇哇 您的问题将得到解决,spyder 将打开而不会显示任何顺序 242 错误……只要这样做,这是唯一的解决方案。
回答by Mike T
If you are running Python/IPython from a console, check the priority of libiomp5md.dll
using where
, i.e.:
如果您从控制台运行 Python/IPython,请检查libiomp5md.dll
using的优先级where
,即:
where libiomp5md.dll
This may show a few absolute paths (one per line) to different libiomp5md.dll
files. A healthy setup should list Anaconda's at the top (e.g. C:\ProgramData\Anaconda3\Library\bin\libiomp5md.dll
), and if there are any others listed below, they can be ignored as they have lower priority.
这可能会显示不同libiomp5md.dll
文件的几个绝对路径(每行一个)。一个健康的设置应该在顶部列出 Anaconda(例如C:\ProgramData\Anaconda3\Library\bin\libiomp5md.dll
),如果下面列出了任何其他的,它们可以被忽略,因为它们的优先级较低。
However, if you see a different libiomp5md.dll
path at the top, then this will be loaded first, and may conflict with Anaconda's DLLs. If this file is in the current directory, then either change directory to a folder without this file, or (if possible) delete or rename the conflicting DLL file. If it's in a different folder, then you may need to re-arrange your PATH
variable to move Anaconda's before other paths.
但是,如果您libiomp5md.dll
在顶部看到不同的路径,那么它将首先加载,并且可能与 Anaconda 的 DLL 冲突。如果此文件在当前目录中,则将目录更改为没有此文件的文件夹,或者(如果可能)删除或重命名冲突的 DLL 文件。如果它在不同的文件夹中,那么您可能需要重新排列PATH
变量以在其他路径之前移动 Anaconda。
回答by gabyCodes
I had the same problem and after trying many solutions, including the above, I finally managed to solve it.
我遇到了同样的问题,在尝试了包括上述在内的多种解决方案后,我终于设法解决了它。
First, open command prompt(Administrator) and input:
首先,打开命令提示符(管理员)并输入:
set CONDA_DLL_SEARCH_MODIFICATION_ENABLE=1
Then, launch the Spyder IDE, always using the command prompt by simply inputting:
然后,启动 Spyder IDE,始终使用命令提示符,只需输入:
spyder
It is important to always launch spyder with the command prompt. If you launch Spyder with the Anaconda Navigator, it will still give you the error message.
始终使用命令提示符启动 spyder 很重要。如果您使用 Anaconda Navigator 启动 Spyder,它仍然会给您错误消息。
回答by Steve
What fixed this issue for me was to uninstall Amplitube and ActiveState Python. I was receiving this exception while using Anaconda prompt and some NLP packages.
为我解决这个问题的是卸载 Amplitube 和 ActiveState Python。我在使用 Anaconda prompt 和一些 NLP 包时收到此异常。
回答by Orozco
Following @Azrael_DD's solution to downgrade to anaconda v5.2.0, you can also do it through a normal console:
遵循@Azrael_DD 的降级到anaconda v5.2.0 的解决方案,您也可以通过普通控制台进行:
conda install anaconda=5.2.0