gpt4 book ai didi

python - 警告! ***HDF5 库版本不匹配错误*** python pandas windows

转载 作者:行者123 更新时间:2023-12-02 02:43:57 24 4
gpt4 key购买 nike

我正在使用 pandas/python 以 HDFStore 格式保存 DataFrame。当我应用 my_data_frame.to_hdf(arguments...) 命令时,我收到一条错误消息:警告! ***HDF5 库版本不匹配错误 *** 我的程序被停止。

我正在 Windows 7(64 位)上工作,使用 Python 3.5.2::Anaconda 4.1.1(64 位)。

我一直在阅读此错误消息,它表示这是我计算机上安装的 HDF5 版本与 Anacondas 使用的版本之间的问题。根据this帖子,一个简单的“conda install -c anaconda hdf5=1.8.18”可以解决我的问题,但我仍然遇到相同的消息错误。

感谢大家的帮助。

这里我放了完整的错误日志:

    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.15, library is 1.8.18          SUMMARY OF THE HDF5 CONFIGURATION          =================================    General Information:    -------------------                       HDF5 Version: 1.8.18                      Configured on: 2017-05-31                      Configured by: NMake Makefiles                     Configure mode: CMAKE 3.8.0                        Host system: Windows-6.3.9600                  Uname information: Windows                           Byte sex: little-endian                          Libraries:                 Installation point: C:/bld/hdf5_1496269860661/_b_env/Library    Compiling Options:    ------------------                   Compilation Mode: RELEASE                         C Compiler: C:/Program Files (x86)/Microsoft Visual Studio    14.0/VC/bin/amd64/cl.exe                             CFLAGS: /DWIN32 /D_WINDOWS /W3                          H5_CFLAGS:                          AM_CFLAGS:                           CPPFLAGS:                        H5_CPPFLAGS:                        AM_CPPFLAGS:                   Shared C Library: YES                   Static C Library: YES      Statically Linked Executables: OFF                            LDFLAGS: /machine:x64                         AM_LDFLAGS:                    Extra libraries: C:/bld/hdf5_1496269860661/_b_env/Library/lib/z.    lib                           Archiver:                             Ranlib:                  Debugged Packages:                        API Tracing: OFF    Languages:    ----------                            Fortran: OFF                   Fortran Compiler:              Fortran 2003 Compiler:                      Fortran Flags:                   H5 Fortran Flags:                   AM Fortran Flags:             Shared Fortran Library: YES             Static Fortran Library: YES                                C++: ON                       C++ Compiler: C:/Program Files (x86)/Microsoft Visual Studio    14.0/VC/bin/amd64/cl.exe                          C++ Flags: /DWIN32 /D_WINDOWS /W3 /GR /EHsc                       H5 C++ Flags:                       AM C++ Flags:                 Shared C++ Library: YES                 Static C++ Library: YES    Features:    ---------                      Parallel HDF5: OFF                 High Level library: ON                       Threadsafety: ON                Default API Mapping: v18     With Deprecated Public Symbols: ON             I/O filters (external):  DEFLATE                                MPE:                         Direct VFD:                            dmalloc:    Clear file buffers before write: ON               Using memory checker: OFF             Function Stack Tracing: OFF          Strict File Format Checks: OFF       Optimization Instrumentation:

最佳答案

尝试卸载h5py模块并重新安装。这为我解决了这个问题

  1. pip 卸载 h5py
  2. pip install h5py

关于python - 警告! ***HDF5 库版本不匹配错误*** python pandas windows,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45411700/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com