ImportError: libhdf5.so.101: cannot open shared object file: No such file or directory
我用Anaconda在linux(centOS6)安装了pygrib,在导入pygrib时出现了这个错误,但是我定位这个文件,发现它在/usr/lib目录里,我在.bashrc文件里也添加了“export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib”,但还是出现这样的错误,请问为什么?
# .bashrc # Source global definitions if [ -f /etc/bashrc ]; then . /etc/bashrc fi # User specific aliases and functions export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib ~
root@localhost lib]# locate libhdf5.so.101 /home/ll/Desktop/libhdf5.so.101.0.0 /usr/lib/libhdf5.so.101
Python 3.5.2 |Anaconda custom (64-bit)| (default, Jul 2 2016, 17:53:06) [GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import pygrib Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: libhdf5.so.101: cannot open shared object file: No such file or directory

浙公网安备 33010602011771号