开发者

lapack import error with NumPy

Trying to import numpy in Python 2.6 I run into:

from numpy.linalg import lapack_lite

ImportError: libmkl_lapack.so: cannot open shared object file: No such file or directory

There are multiple instances of Intel's Math Kernel Library on the machine providing libmkl_la开发者_JAVA技巧pack.so and I'm pointing at them with every relevant or semi-relevant environmental variable I can think of (most notably, I guess, $LD_LIBRARY_PATH and $PYTHONPATH). I don't have permission to run ldconfig.

This is on a well-used machine and there are multiple Python and NumPy installs. Python2.6 is in my /home/me/usr/ but there is an older installation of Python2.4 in /usr/ which will import lapack_lite without issue. So I'm not sure where to go from here.

Thanks for anything!


you can try

strace python your_script.py

to see what it is trying.

That will trace all syscalls, therefore showing you the underlying open made by python.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜