pytables 3.0无法在自制软件更新后找到hdf 1.8.12并且不会恢复到1.8.11

时间:2013-11-20 00:10:12

标签: homebrew pytables

我有一个奇怪的问题。我通过自制程序从1.8.11更新了我的hdf版本到1.8.12。当然pytables很生气,因为它是针对1.8.11构建的,所以我通过pip重新安装。但现在pytables抱怨标题是1.8.11和库1.8.12。我卸载了所有东西(hdf5 1.8.11,1.8.12和pytables)并从头开始,即brew install hdf5,pip install --user tables。但我仍然得到同样的错误:

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 '1'.
Setting it to 2 or higher will suppress the warning messages totally.
Headers are 1.8.11, library is 1.8.12

我也试过降级到1.8.11,但是我遇到了这个错误。

i3-dhcp-172-16-223-173:Formula xxxx$ brew versions hdf5
Warning: brew-versions is unsupported and may be removed soon.
Please use the homebrew-versions tap instead:
  https://github.com/Homebrew/homebrew-versions
1.8.12   git checkout e54b6a9 /usr/local/Library/Taps/homebrew-science/hdf5.rb
1.8.11   git checkout 6e496de /usr/local/Library/Taps/homebrew-science/hdf5.rb
1.8.10-patch1 git checkout 41a7410 /usr/local/Library/Taps/homebrew-science/hdf5.rb
1        git checkout 569ea5a /usr/local/Library/Taps/homebrew-science/hdf5.rb
1.8.9    git checkout 9c9cc31 /usr/local/Library/Taps/homebrew-science/hdf5.rb
1.8.8    git checkout 723160f /usr/local/Library/Taps/homebrew-science/hdf5.rb
1.8.7    git checkout a63ba22 /usr/local/Library/Taps/homebrew-science/hdf5.rb
1.8.6    git checkout 6e42249 /usr/local/Library/Taps/homebrew-science/hdf5.rb
1.8.5-patch1 git checkout cf4aee1 /usr/local/Library/Taps/homebrew-science/hdf5.rb
1.8.5    git checkout 5453131 /usr/local/Library/Taps/homebrew-science/hdf5.rb
1.8.4-patch1 git checkout df3114b /usr/local/Library/Taps/homebrew-science/hdf5.rb
1.8.4    git checkout 10435eb /usr/local/Library/Taps/homebrew-science/hdf5.rb
i3-dhcp-172-16-223-173:Formula xxxxx$ git checkout 6e496de /usr/local/Library/Taps/homebrew-science/hdf5.rb
error: pathspec '6e496de' did not match any file(s) known to git.
error: pathspec '../Taps/homebrew-science/hdf5.rb' did not match any file(s) known to git.

1 个答案:

答案 0 :(得分:1)

您基本上有两个选择:

  1. 从brew安装HDF5 1.8.12,然后从源代码安装PyTables(不是pip)
  2. 请注意版本不匹配警告。 (这种差异可能还可以)
  3. 任何其他可能无效或将导致您遇到错误。