Traceback (most recent call last ): File "" , line 1 , in File "/home/forest/.virtualenvs/cv2/local/lib/python2.7/site-packages/dlib-19.4.99-py2.7-linux-x86_64.egg/dlib/init.py" , line 1 , in from .dlib import * ImportError: libmkl_rt.so: cannot open shared object file : No such file or directory

解决方法:在/etc/ld.so.conf.d目录下创建mylibs.conf文件,然后将libmkl_rt.so所在位置的目录添加到文件。可能在如下三个位置:

/opt/intel/compilers_and_libraries_2017.4.196/linux/mkl/lib/ia32_lin/
/opt/intel/compilers_and_libraries_2017.4.196/linux/mkl/lib/intel64_lin/
/opt/intel/compilers_and_libraries_2017.4.196/linux/mkl/lib/intel64_lin_mic/

如果不知道可以用 locate libmkl_rt.so 命令查看位置:
这里写图片描述

最后重新加载配置: sudo ldconfig 即可

在安装完dlib之后,import dlib时出现如下错误:import dlibTraceback (most recent call last):File "", line 1, in File "/home/forest/.virtualenvs/cv2/local/lib/python2.7/site-packages/dlib-19.4.99-py2.7-linux-x86_64.e
Linux编写程序时,会经常的接触动态库,而在程序运行时可能会遇到类似于:libxxx.so cannot open shared object file No such file or directory的问题,这个代表什么含义,该怎么解决呢? 这个问题代表的含义是,可执行程序在加载libxxx.so库时,找不到该库。至于找不到的情况分为两种:系统里根本不存在libxxx.so库;libx...
error while loading shared libraries: l ibm kl _ rt .so: cannot open shared object file : No such file or directory。 find /* -name "l ibm kl _ rt .so"  找到该文件所在的目录 # cat /etc/ld.so.conf include ld.so.conf.d/*.
运行程序,出现报错信息如下: ImportError : libGL.so.1: cannot open shared object file : No such file or directory 从字面上理解,环境钟缺少libGL.so.1文件,即缺少GL库文件。 搜索得到libGL的定义如下: Open GL-based programs must link with th
在ubuntu14.04,64位下面,遇到下面问题,需要注意: 1、error while loading shared libraries: l ibm kl _ rt .so: cannot open shared object file : No such file or directory 解决方法: /etc/ld.so.conf.d/ 文件夹下增加了一个文件命名为intel_m kl _settin...
https://www.cnblogs.com/denny402/p/10848506.html 安装或者更新完pytorch后,运行不了,显示错误: (base) xu@xusu:~$ python Python 3.7.1 (default, Dec 14 2018, 19:28:38) [GCC 7.3.0] :: Anaconda, Inc. on linux Type "help", ...
在安装 open cv-python之后,impo rt cv2遇到了以下错误: ImportError : libSM.so.6: cannot open shared object file : No such file or directory ImportError : libXrender.so.1: cannot open shared object file : No such file or ...
error while loading shared libraries: libnsl.so.1: cannot open shared object file : No such 一般这个错误就是依赖包没装完,执行以下安装即可 yum install libnsl.x86_64
ImportError : l ibm kl _ rt .so.1: cannot open shared object file : No such file or directory