Intel MKL FATAL ERROR on import gensim

1,255 views
Skip to first unread message

Krishna Anandh

unread,
Mar 30, 2016, 6:29:03 PM3/30/16
to gensim
Hi,

I just did pip install --upgrade gensim 

and when i try to do 'import gensim' from my program, I get:

Intel MKL FATAL ERROR: Cannot load libmkl_avx.so or libmkl_def.so.

and python interpreter stops.

Any idea what might be causing this?

Thanks,

Radim Řehůřek

unread,
Mar 30, 2016, 8:04:32 PM3/30/16
to gensim
Hello,

MKL is a library (optionally) used by NumPy and SciPy. So my guess is these two libraries are not installed correctly on your machine.

It has nothing to do with gensim -- try just `import numpy` to start with.

-rr

nipun.s...@jsm.email

unread,
Mar 31, 2016, 5:51:07 AM3/31/16
to gensim
I am also facing same issue 

I installed gensim through

1) As i am using Anaconda so i used :

  conda install gensim 

which installed 0.12.2 version

 ```
root@localhost:~# conda upgrade gensim
Using Anaconda Cloud api site https://api.anaconda.org
Fetching package metadata: ....
# All requested packages already installed.
# packages in environment at /opt/anaconda2:
#
gensim                    0.12.2              np110py27_0
```

when i do `import numpy` or `import scipy` it doesnt raise any error.

import gensim causes

```
>>> import gensim
Intel MKL FATAL ERROR: Cannot load libmkl_avx.so or libmkl_def.so.
root@localhost:~#
```

it crashes python and same thing happens with jupyter notebook (python 2 kernel crashes)

Radim Řehůřek

unread,
Mar 31, 2016, 9:06:46 AM3/31/16
to gensim
Hello,

no idea what that is. Best to contact the Anaconda devs (or use standard virtualenv+pip if urgent).

Best,
Radim

Islam El-Hosary

unread,
Apr 11, 2016, 10:42:59 AM4/11/16
to gensim
Any updates on this, I have the same issue, and it raised when I tried to update gensim from 012.3 to 012.4, Im using ubuntu server 14.04 and Anaconda.

Lev Konstantinovskiy

unread,
Apr 11, 2016, 12:03:15 PM4/11/16
to gen...@googlegroups.com

Does it work with virtualenv+pip instead of Anaconda?

--
You received this message because you are subscribed to the Google Groups "gensim" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gensim+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

ts

unread,
Apr 12, 2016, 11:32:42 PM4/12/16
to gensim
I am also having the same issue running gensim 0.12.4 on Anaconda 2.4.1 (Python 2.4.1) under Linux Mint 17.3 64-bit. Any fixes would be appreciated

Lev Konstantinovskiy

unread,
Apr 13, 2016, 3:21:30 AM4/13/16
to gen...@googlegroups.com
Hi,

Please raise the Anaconda issues in the Anaconda support mailing list.


Anaconda is a private closed source product which we have no control over.

But please let us know if it works with pip+virtualenv.

Regards
Lev


--

葉仕弘

unread,
Apr 30, 2016, 3:45:34 AM4/30/16
to gensim
Run
conda install nomkl numpy scipy scikit-learn numexpr

The above command will install OpenBlas and download numpy that uses OpenBlas.
I found this in their documentation.

Krishna Anandh於 2016年3月31日星期四 UTC+8上午6時29分03秒寫道:

aman taneja

unread,
Nov 24, 2016, 6:36:55 AM11/24/16
to gensim
Thanks, it worked !
Reply all
Reply to author
Forward
0 new messages