今天在执行一个用到hdf5的python脚本时,遇到如下错误

Warning! ***HDF5 library version mismatched error***
The HDF5 header files used to compile this application do not match
the version used by the HDF5 library to which this application is linked.
Data corruption or segmentation faults may occur if the application continues.
This can happen when an application was compiled by one version of HDF5 but
linked with a different version of static or shared HDF5 library.
You should recompile the application or check your shared library related
settings such as 'LD_LIBRARY_PATH'.
You can, at your own risk, disable this warning by setting the environment
variable 'HDF5_DISABLE_VERSION_CHECK' to a value of ''.
Setting it to or higher will suppress the warning messages totally.
Headers are 1.8., library is 1.8.
SUMMARY OF THE HDF5 CONFIGURATION
================================= General Information:
-------------------
HDF5 Version: 1.8.
Configured on: Fri Dec :: CST
Configured by: ilan@centos5x64
Configure mode: production
Host system: x86_64-unknown-linux-gnu
Uname information: Linux centos5x64 2.6.-.el5 # SMP Tue Jan :: EST x86_64 x86_64 x86_64 GNU/Linux
Byte sex: little-endian
Libraries:
Installation point: /opt/anaconda1anaconda2anaconda3 Compiling Options:
------------------
Compilation Mode: production
C Compiler: /usr/bin/gcc ( gcc (GCC) 4.1. )
CFLAGS:
H5_CFLAGS: -std=c99 -pedantic -Wall -Wextra -Wundef -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wwrite-strings -Wconversion -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wnested-externs -Winline -Wno-long-long -Wfloat-equal -Wmissing-format-attribute -Wmissing-noreturn -Wpacked -Wdisabled-optimization -Wformat= -Wunreachable-code -Wendif-labels -Wdeclaration-after-statement -Wold-style-definition -Winvalid-pch -Wvariadic-macros -Wnonnull -Winit-self -Wmissing-include-dirs -Wswitch-default -Wswitch-enum -Wunused-macros -Wunsafe-loop-optimizations -Wc++-compat -Wvolatile-register-var -O3 -fomit-frame-pointer -finline-functions
AM_CFLAGS:
CPPFLAGS:
H5_CPPFLAGS: -D_POSIX_C_SOURCE=199506L -DNDEBUG -UH5_DEBUG_API
AM_CPPFLAGS: -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_BSD_SOURCE
Shared C Library: yes
Static C Library: no
Statically Linked Executables: no
LDFLAGS:
H5_LDFLAGS:
AM_LDFLAGS:
Extra libraries: -lpthread -lz -lrt -lm
Archiver: ar
Ranlib: ranlib
Debugged Packages:
API Tracing: no Languages:
----------
Fortran: no C++: no Features:
---------
Parallel HDF5: no
High Level library: yes
Threadsafety: yes
Default API Mapping: v18
With Deprecated Public Symbols: yes
I/O filters (external): deflate(zlib)
I/O filters (internal): shuffle,fletcher32,nbit,scaleoffset
MPE: no
Direct VFD: no
dmalloc: no
Clear file buffers before write: yes
Using memory checker: no
Function Stack Tracing: no
GPFS: no
Strict File Format Checks: no
Optimization Instrumentation: no
Large File Support (LFS): yes
Bye...
Aborted (core dumped)

昨天还好好的,今天怎么就出现了问题。回忆了一下好像昨天更新了anaconda,可能导致了冲突,经查看,确实如此。Anaconda中安装的hdf5库是1.8.9的, 而之前通过pip intall h5py库应该就是1.8.11的, 一山不容二虎,于是把旧版本删除了

sudo pip uninstall h5py

按下回车,果然在系统自带的python下有以前的h5py版本

Uninstalling h5py:
/usr/local/lib/python2./dist-packages/h5py-2.3..egg-info
/usr/local/lib/python2./dist-packages/h5py/__init__.py
/usr/local/lib/python2./dist-packages/h5py/__init__.pyc
/usr/local/lib/python2./dist-packages/h5py/_conv.so
/usr/local/lib/python2./dist-packages/h5py/_errors.so
/usr/local/lib/python2./dist-packages/h5py/_hl/__init__.py
/usr/local/lib/python2./dist-packages/h5py/_hl/__init__.pyc
/usr/local/lib/python2./dist-packages/h5py/_hl/attrs.py
/usr/local/lib/python2./dist-packages/h5py/_hl/attrs.pyc
/usr/local/lib/python2./dist-packages/h5py/_hl/base.py
/usr/local/lib/python2./dist-packages/h5py/_hl/base.pyc
/usr/local/lib/python2./dist-packages/h5py/_hl/dataset.py
/usr/local/lib/python2./dist-packages/h5py/_hl/dataset.pyc
/usr/local/lib/python2./dist-packages/h5py/_hl/datatype.py
/usr/local/lib/python2./dist-packages/h5py/_hl/datatype.pyc
/usr/local/lib/python2./dist-packages/h5py/_hl/dims.py
/usr/local/lib/python2./dist-packages/h5py/_hl/dims.pyc
/usr/local/lib/python2./dist-packages/h5py/_hl/files.py
/usr/local/lib/python2./dist-packages/h5py/_hl/files.pyc
/usr/local/lib/python2./dist-packages/h5py/_hl/filters.py
/usr/local/lib/python2./dist-packages/h5py/_hl/filters.pyc
/usr/local/lib/python2./dist-packages/h5py/_hl/group.py
/usr/local/lib/python2./dist-packages/h5py/_hl/group.pyc
/usr/local/lib/python2./dist-packages/h5py/_hl/selections.py
/usr/local/lib/python2./dist-packages/h5py/_hl/selections.pyc
/usr/local/lib/python2./dist-packages/h5py/_hl/selections2.py
/usr/local/lib/python2./dist-packages/h5py/_hl/selections2.pyc
/usr/local/lib/python2./dist-packages/h5py/_objects.so
/usr/local/lib/python2./dist-packages/h5py/_proxy.so
/usr/local/lib/python2./dist-packages/h5py/defs.so
/usr/local/lib/python2./dist-packages/h5py/h5.so
/usr/local/lib/python2./dist-packages/h5py/h5a.so
/usr/local/lib/python2./dist-packages/h5py/h5ac.so
/usr/local/lib/python2./dist-packages/h5py/h5d.so
/usr/local/lib/python2./dist-packages/h5py/h5ds.so
/usr/local/lib/python2./dist-packages/h5py/h5f.so
/usr/local/lib/python2./dist-packages/h5py/h5fd.so
/usr/local/lib/python2./dist-packages/h5py/h5g.so
/usr/local/lib/python2./dist-packages/h5py/h5i.so
/usr/local/lib/python2./dist-packages/h5py/h5l.so
/usr/local/lib/python2./dist-packages/h5py/h5o.so
/usr/local/lib/python2./dist-packages/h5py/h5p.so
/usr/local/lib/python2./dist-packages/h5py/h5r.so
/usr/local/lib/python2./dist-packages/h5py/h5s.so
/usr/local/lib/python2./dist-packages/h5py/h5t.so
/usr/local/lib/python2./dist-packages/h5py/h5z.so
/usr/local/lib/python2./dist-packages/h5py/highlevel.py
/usr/local/lib/python2./dist-packages/h5py/highlevel.pyc
/usr/local/lib/python2./dist-packages/h5py/ipy_completer.py
/usr/local/lib/python2./dist-packages/h5py/ipy_completer.pyc
/usr/local/lib/python2./dist-packages/h5py/tests/__init__.py
/usr/local/lib/python2./dist-packages/h5py/tests/__init__.pyc
/usr/local/lib/python2./dist-packages/h5py/tests/common.py
/usr/local/lib/python2./dist-packages/h5py/tests/common.pyc
/usr/local/lib/python2./dist-packages/h5py/tests/test_attrs.py
/usr/local/lib/python2./dist-packages/h5py/tests/test_attrs.pyc
/usr/local/lib/python2./dist-packages/h5py/tests/test_attrs_data.py
/usr/local/lib/python2./dist-packages/h5py/tests/test_attrs_data.pyc
/usr/local/lib/python2./dist-packages/h5py/tests/test_base.py
/usr/local/lib/python2./dist-packages/h5py/tests/test_base.pyc
/usr/local/lib/python2./dist-packages/h5py/tests/test_dataset.py
/usr/local/lib/python2./dist-packages/h5py/tests/test_dataset.pyc
/usr/local/lib/python2./dist-packages/h5py/tests/test_datatype.py
/usr/local/lib/python2./dist-packages/h5py/tests/test_datatype.pyc
/usr/local/lib/python2./dist-packages/h5py/tests/test_dimension_scales.py
/usr/local/lib/python2./dist-packages/h5py/tests/test_dimension_scales.pyc
/usr/local/lib/python2./dist-packages/h5py/tests/test_file.py
/usr/local/lib/python2./dist-packages/h5py/tests/test_file.pyc
/usr/local/lib/python2./dist-packages/h5py/tests/test_group.py
/usr/local/lib/python2./dist-packages/h5py/tests/test_group.pyc
/usr/local/lib/python2./dist-packages/h5py/tests/test_h5.py
/usr/local/lib/python2./dist-packages/h5py/tests/test_h5.pyc
/usr/local/lib/python2./dist-packages/h5py/tests/test_h5f.py
/usr/local/lib/python2./dist-packages/h5py/tests/test_h5f.pyc
/usr/local/lib/python2./dist-packages/h5py/tests/test_h5p.py
/usr/local/lib/python2./dist-packages/h5py/tests/test_h5p.pyc
/usr/local/lib/python2./dist-packages/h5py/tests/test_h5t.py
/usr/local/lib/python2./dist-packages/h5py/tests/test_h5t.pyc
/usr/local/lib/python2./dist-packages/h5py/tests/test_objects.py
/usr/local/lib/python2./dist-packages/h5py/tests/test_objects.pyc
/usr/local/lib/python2./dist-packages/h5py/tests/test_selections.py
/usr/local/lib/python2./dist-packages/h5py/tests/test_selections.pyc
/usr/local/lib/python2./dist-packages/h5py/tests/test_slicing.py
/usr/local/lib/python2./dist-packages/h5py/tests/test_slicing.pyc
/usr/local/lib/python2./dist-packages/h5py/utils.so
/usr/local/lib/python2./dist-packages/h5py/version.py
/usr/local/lib/python2./dist-packages/h5py/version.pyc
Proceed (y/n)? y
Successfully uninstalled h5py

Ubuntu: HDF5报错: HDF5 header version与HDF5 library不匹配的更多相关文章

  1. CentOS6.6 编译Redis报错:"Newer version of jemalloc required"

    一.前言 不同系统同一个问题,可能解决方法不一样,也可能会遇到不同的问题,所以具体情况具体分析,我的系统是Centos6.6, 查看系统命令  cat /etc/issue 二.安装redis后编译报 ...

  2. Ubuntu系统---报错Assertion '0' failed

    Ubuntu系统---报错Assertion '0' failed YOLO V3,CUDA Error: out of memory darknet: ./src/cuda.c:36: check_ ...

  3. Ubuntu系统报错The system is running in low-graphics mode

    Ubuntu系统报错:The system is running in low-graphics mode 我遇到过两次这种请况,这次解决了.很nice! 在csdn上搜到的大部分操作是: 鼠标进入系 ...

  4. Eclipse报错 due to restriction on required library C:/Java/jdk1.7.51/jre/lib/rt.jar 解决方案

    Eclipse报错 due to restriction on required library C:/Java/jdk1.6.0_10/jre/lib/rt.jar 解决方案 Eclipse 编译时 ...

  5. Oracle 插入时间时 报错:ORA-01861: 文字与格式字符串不匹配 的解决办法

    一.写sql的方式插入到Oracle中 往oracle中插入时间  '2007-12-28 10:07:24'如果直接按照字符串方式,或者,直接使用to_date('2007-12-28 10:07: ...

  6. php源码安装执行configure报错error: off_t undefined; check your library configuration

    php安装执行configure报错error: off_t undefined; check your library configuration vim /etc/ld.so.conf 添加如下几 ...

  7. python连接oracle数据库报错"DatabaseError: DPI-1047: 64-bit Oracle Client library cannot be loaded: "解决方案

    操作系统,python3.5, oracle_11, 均为64位:plsql 正常连接. 也顺利安装了cx_oracle 6.3,但是python进行连接的时候就会报错"DatabaseEr ...

  8. maven项目报错--Cannot change version of project facet Dynamic Web Module to 3.0 Error in Eclipse

    错误原因: 使用ecplise构建的maven骨架默认支持的是web2.3的版本,当使用这个创建3.0版本的web项目时则会报这样的错误: Cannot change version of proje ...

  9. Ubuntu adb 报错:no permissions (user in plugdev group; are your udev rules wrong?);

    Ubuntu 下 adb 报错: caoxinyu@caoxinyu-ThinkPad-T470p:~/Android/Sdk/platform-tools$ ./adb devices List o ...

随机推荐

  1. Luogu4884 多少个1?(BSGS)

    11……1(n个)=99……9(n个)/9=(10n-1)/9. 那么显然就是求离散对数了,BSGS即可. #include<iostream> #include<cstdio> ...

  2. BZOJ3156 防御准备(动态规划+斜率优化)

    设f[i]为在i放置守卫塔时1~i的最小花费.那么显然f[i]=min(f[j]+(i-j)*(i-j-1)/2)+a[i]. 显然这是个斜率优化入门题.将不与i.j同时相关的提出,得f[i]=min ...

  3. 函数防抖与函数节流 封装好的debounce和throttle函数

    /** * 空闲控制 返回函数连续调用时,空闲时间必须大于或等于 wait,func 才会执行 * * @param {function} func 传入函数,最后一个参数是额外增加的this对象,. ...

  4. python使用selenium、PhantomJS获得网站cookie信息#windows

    首先python安装selenium,命令行中输入 pip install selenium 在执行代码如下代码时出现错误 driver=webdriver.PhantomJS() 错误如下 sele ...

  5. web接口测试中需要测试的几个点

    本文导读: web接口测试用例要包括欲测试的功能.应输入的数据和预期的输出结果,只有在数据能正确流入.流出模块的前提下,其他测试才有意义.下面介绍在web测试接口时一些需要注意的点 1.接口返回 数据 ...

  6. ORA-01410: 无效的 ROWID

    视图查询单表是有这个东西的,但是视图的SQL涉及多表关联,就没这个rowid了,要么自己写个,要么不用这个ROWID做啥动作

  7. BZOJ5305 [Haoi2018]苹果树 【组合数学】

    题目链接 BZOJ5305 题解 妙啊 要求的是所有可能的树形的所有点对距离和 直接考虑点的贡献肯定想不出,这样的所有点对距离问题通常转化为边的贡献 考虑一条边会产生多少贡献 我们枚举\(i\)节点的 ...

  8. 解题:HEOI 2016 求和

    题面 我们需要知道这样一个东西(大概叫 斯特林公式?) $S(i,j)=\frac{1}{j!}\sum\limits_{k=0}^{j}(-1)^k C_j^k(j-k)^i$ 那么就是推啊 $=\ ...

  9. 【bzoj2754】【scoi2012】喵星球上的点名

    题解们: 1.首先可以被很多暴力给搞过去:我以前也是这样水过去的 2.ac自动机 2.1 抽离fail树 对点名建自动机,建$fail$树的时候只保留询问节点: 对于一个喵,子串==在自动机里匹配到的 ...

  10. Qt 查找功能

    版权声明 该文章原创于Qter开源社区(www.qter.org),作者yafeilinux,转载请注明出处!     导语 这一篇我们来加上查找菜单的功能.因为要涉及Qt Creator的很多实用功 ...