Ubuntu: HDF5报错: HDF5 header version与HDF5 library不匹配(2)

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

sudo pip uninstall h5py

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


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

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/16418.html