我试图在pycharm中导入tensorflow,我明白了:
C:\ Users \ Public \ anaconda \ anaconda3 \ envs \ tensor \ pythonw.exe“ C:/ Users / Muhammed Jaabir / PycharmProjects / untitled6 / tensor.py” C:\ Users \ Public \ anaconda \ anaconda3 \ envs \ tensor \ lib \ site-packages \ h5py__init __。py:40:UserWarning:h5py针对HDF5 1.10.5运行时(针对1.10.4构建)可能会导致问题 '{0}。{1}。{2}'。format(* version.hdf5_built_version_tuple) 警告! HDF5库版本不匹配错误 用于编译此应用程序的HDF5头文件不匹配 该应用程序链接到的HDF5库使用的版本。 如果应用程序继续,则可能会发生数据损坏或分段错误。 当应用程序由一个版本的HDF5编译时会发生这种情况,但是 与其他版本的静态或共享HDF5库链接。 您应该重新编译应用程序或检查与您的共享库相关的 设置,例如“ LD_LIBRARY_PATH”。 您可以自行承担风险,通过设置环境来禁用此警告 变量“ HDF5_DISABLE_VERSION_CHECK”的值设置为“ 1”。 设置为2或更高将完全抑制警告消息。 标头为1.10.4,库为1.10.5 HDF5配置摘要 ===============================
HDF5 Version: 1.10.5
Configured on: 2019-03-04
Configured by: Visual Studio 15 2017 Win64
Host system: Windows-10.0.17763
Uname information: Windows
Byte sex: little-endian
Installation point: C:/Program Files/HDF5
Build Mode:
Debugging Symbols:
Asserts:
Profiling:
Optimization Level:
Libraries:
Statically Linked Executables: OFF
LDFLAGS: /machine:x64
H5_LDFLAGS:
AM_LDFLAGS:
Extra libraries:
Archiver:
Ranlib:
C: yes
C Compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x64/cl.exe 19.16.27027.1
CPPFLAGS:
H5_CPPFLAGS:
AM_CPPFLAGS:
CFLAGS: /DWIN32 /D_WINDOWS /W3
H5_CFLAGS:
AM_CFLAGS:
Shared C Library: YES
Static C Library: YES
Fortran: OFF
Fortran 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/2017/Community/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x64/cl.exe 19.16.27027.1
C++ Flags: /DWIN32 /D_WINDOWS /W3 /GR /EHsc
H5 C++ Flags:
AM C++ Flags:
Shared C++ Library: YES
Static C++ Library: YES
JAVA: OFF
JAVA Compiler:
Parallel HDF5: OFF
Parallel Filtered Dataset Writes:
Large Parallel I/O:
High-level library: ON
Threadsafety: OFF
Default API mapping: v110
With deprecated public symbols: ON
I/O filters (external): DEFLATE DECODE ENCODE
MPE:
Direct VFD:
dmalloc:
Packages w/ extra debug output:
API Tracing: OFF
Using memory checker: OFF
Memory allocation sanity checks: OFF
Function Stack Tracing: OFF
Strict File Format Checks: OFF
Optimization Instrumentation:
Bye...
答案 0 :(得分:0)
请按如下所示安装h5py
pip install h5py --upgrade --no-dependencies --force