英特尔MKL致命错误:尝试导入gensim程序包时 [英] Intel MKL FATAL ERROR: while trying to import gensim package

查看:61
本文介绍了英特尔MKL致命错误:尝试导入gensim程序包时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们在主机上安装了Anaconda 4.3.1,最近我们安装了一些软件包以用于数据科学.除gensim以外,其他所有进口货物都很好.

We have Anaconda 4.3.1 installed on our hosts and recently we have installed several packages for data science use. All the imports were fine except for gensim.

我收到英特尔MKL致命错误:无法加载libmkl_avx2.so或libmkl_def.so".并退出python shell.

I am getting "Intel MKL FATAL ERROR: Cannot load libmkl_avx2.so or libmkl_def.so." and getting out of python shell.

这听起来像是重复的,但奇怪的是,当我在导入gensim之前导入tensorflow或seaborn时,我没有得到该错误,并且正在导入gensim.我还想知道这些软件包之间是否存在任何依赖关系.我确实有numpy的最新版本,即1.14.5.我已经研究了关于安装几个软件包和卸载几个软件包的各种解决方案.我想知道为什么要在实际操作之前先进行操作.

It sounds like a duplicate but the weird part is, when I import tensorflow or seaborn before importing gensim, I am not getting that error and gensim is being imported. I would also like to know if there is any dependency between these packages. And I do have the latest version of numpy which is 1.14.5. I have looked at various solutions proposed about installing few packages and uninstalling few. I would like to know the reason why we should be doing it before actually doing it.

推荐答案

这是我关于您的问题的理论:

Here is my theory on your question:

gensim,tensoflow,seaborn和此类软件包之间是否存在依赖关系?当您尝试使用conda一个接一个地安装这些软件包时,您可能已经看到conda提示某些依赖项将被降级/更新/安装.因此,这些软件包的依赖关系之间存在依赖关系.

Is there any dependency between gensim, tensoflow, seaborn and such packages? When you try to install these packages one by one using conda, you might have already seen conda prompting that some of the dependencies will be DOWNGRADED/UPDATED/INSTALLED. Hence there is dependency between the dependencies of these packages.

为什么仅在某些情况下会引发导入错误?看起来像一个依赖性问题.当您尝试导入gensim时,它将尝试加载某些无法找到的lib文件.但是,当导入tensorflow或seaborn时,提到的lib文件可能已经加载,因此导入gensim不会显示错误.

Why import error is thrown only on certain cases? Looks like a dependency issue. When you try to import gensim, it tries to load certain lib files, which its not able to find. However, when tensorflow or seaborn is imported the mentioned lib files might have already loaded, hence importing gensim did not show an error.

为什么要安装几个软件包而卸载几个软件包却有助于解决问题?这可能有助于使软件包具有正确的依赖性,以使其正常工作.

Why installing few packages and uninstalling few, help to solve the problem? This might help to have the correct dependencies for the packages to work properly.

话虽如此,我试图重新创建您遇到的错误,但是gensim对我来说很好.如果您可以给出"conda list"的结果,将尝试重现该问题并能够提供更好的见解.

Having said that, I tried to recreate the error that you got, however gensim is importing fine for me. If you could give the result of "conda list", will try to recreate the problem and would be able to give a better insight.

这篇关于英特尔MKL致命错误:尝试导入gensim程序包时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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