我认为我的TensorFlow安装存在一些问题,当我尝试导入它时,我得到的输出已复制到下面。
现在我认为这是由于TensorFlow版本的HDF5(1.10.1)与conda安装的HDF5即1.10.2之间的差异,可能是因为我通过pip路线安装了TensorFlow GPU。你们有什么感想?我是对的,应该怎么做才能解决这个问题?
警告! HDF5库版本不匹配错误 HDF5标头 用于编译此应用程序的文件与使用的版本不匹配 该应用程序链接到的HDF5库。数据 如果应用程序可能发生损坏或分段错误 继续。当一个应用程序被一个人编译时,可能会发生这种情况。 HDF5版本,但与其他版本的static或 共享的HDF5库。您应该重新编译应用程序或检查 您的共享库相关设置,例如“ LD_LIBRARY_PATH”。您 可以自行承担风险,通过设置环境来禁用此警告 变量“ HDF5_DISABLE_VERSION_CHECK”的值设置为“ 1”。设置为 2或更高将完全抑制警告消息。标头是 1.10.1,库为1.10.2 HDF5配置摘要 ================================
常规信息:
HDF5 Version: 1.10.2 Configured on: Wed May 9 23:24:59 UTC 2018 Configured by: root@19a5a2e5-30a4-45db-5607-0c407004981e Host system: x86_64-conda_cos6-linux-gnu Uname information: Linux 19a5a2e5-30a4-45db-5607-0c407004981e 4.4.0-62-generic #83-Ubuntu SMP
UTC 2017年1月18日星期三14:10:15 x86_64 x86_64 x86_64 GNU / Linux 字节性别:小端 安装点:/ home / anukoolpurohit / anaconda3
编译选项:
Build Mode: production Debugging Symbols: no Asserts: no Profiling: no Optimization Level: high
链接选项:
Libraries: static, shared Statically Linked Executables: LDFLAGS: -Wl,-O2 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,-rpath,/home/anukoolpurohit/anaconda3/lib -L/home/anukoolpurohit/anaconda3/lib H5_LDFLAGS: AM_LDFLAGS: -L/home/anukoolpurohit/anaconda3/lib Extra libraries: -lrt -lpthread -lz -ldl -lm Archiver: /tmp/build/80754af9/hdf5_1525908201964/_build_env/bin/x86_64-conda_cos6-linux-gnu-ar AR_FLAGS: cr Ranlib: /tmp/build/80754af9/hdf5_1525908201964/_build_env/bin/x86_64-conda_cos6-linux-gnu-ranlib
语言:
C: yes C Compiler: /tmp/build/80754af9/hdf5_1525908201964/_build_env/bin/x86_64-conda_cos6-linux-gnu-cc CPPFLAGS: -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 H5_CPPFLAGS: -D_GNU_SOURCE -D_POSIX_C_SOURCE=200112L -DNDEBUG -UH5_DEBUG_API AM_CPPFLAGS: -I/home/anukoolpurohit/anaconda3/include C Flags: -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -pipe -I/home/anukoolpurohit/anaconda3/include -fdebug-prefix-map=${SRC_DIR}=/usr/local/src/conda/${PKG_NAME}-${PKG_VERSION} -fdebug-prefix-map=${PREFIX}=/usr/local/src/conda-prefix H5 C Flags: -std=c99 -pedantic -Wall -Wextra -Wbad-function-cast -Wc++-compat -Wcast-align -Wcast-qual -Wconversion -Wdeclaration-after-statement -Wdisabled-optimization -Wfloat-equal -Wformat=2 -Winit-self -Winvalid-pch -Wmissing-declarations -Wmissing-include-dirs -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpacked -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-prototypes -Wswitch-default -Wswitch-enum -Wundef -Wunused-macros -Wunsafe-loop-optimizations -Wwrite-strings -finline-functions -s -Wno-inline -Wno-aggregate-return -Wno-missing-format-attribute -Wno-missing-noreturn -O AM C Flags: Shared C Library: yes Static C Library: yes Fortran: yes Fortran Compiler: /tmp/build/80754af9/hdf5_1525908201964/_build_env/bin/x86_64-conda_cos6-linux-gnu-gfortran Fortran Flags: H5 Fortran Flags: -pedantic -Wall -Wextra -Wunderflow -Wimplicit-interface -Wsurprising -Wno-c-binding-type -s -O2 AM Fortran Flags: Shared Fortran Library: yes Static Fortran Library: yes C++: yes C++ Compiler: /tmp/build/80754af9/hdf5_1525908201964/_build_env/bin/x86_64-conda_cos6-linux-gnu-c++ C++ Flags: -fvisibility-inlines-hidden -std=c++17 -fmessage-length=0 -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -pipe -I/home/anukoolpurohit/anaconda3/include -fdebug-prefix-map=${SRC_DIR}=/usr/local/src/conda/${PKG_NAME}-${PKG_VERSION} -fdebug-prefix-map=${PREFIX}=/usr/local/src/conda-prefix H5 C++ Flags: -pedantic -Wall -W -Wundef -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wconversion -Wredundant-decls -Winline -Wsign-promo -Woverloaded-virtual -Wold-style-cast -Weffc++ -Wreorder -Wnon-virtual-dtor -Wctor-dtor-privacy -Wabi -finline-functions -s -O AM C++ Flags: Shared C++ Library: yes Static C++ Library: yes Java: no
功能:
Parallel HDF5: no High-level library: yes Threadsafety: yes Default API mapping: v110 With deprecated public symbols: yes I/O filters (external): deflate(zlib) MPE: no Direct VFD: no dmalloc: no Packages w/ extra debug output: none API tracing: no Using memory checker: yes Memory allocation sanity checks: no Metadata trace file: no Function stack tracing: no Strict file format checks: no Optimization instrumentation: no Bye... Aborted (core dumped)