Several solutions to the problem of HDF5 error reporting in Python environment (personal test)
the content of error reporting is as follows:
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.10.4, library is 1.10.5
There are two ways to solve this problem.
first of all, this problem may be the mismatch of HDF5 library, or it may be something similar to warning. I will talk about it in detail below.
The first solution: uninstall HDF5 and then install it again.
The code executed by the terminal is as follows:
CONDA install HDF5
there are many friends on the Internet who use this method to be useful. I personally test that this method is useless to me.
The second solution: check the set path: LD_ LIBRARY_ Path
I personally test: because the system I use is win10, but LD_ LIBRARY_ I couldn’t find the path for a long time. Later, I searched for the path of Linux, so I didn’t use this method.
The third solution: the HDF5_ DISABLE_ VERSION_ Check is set to a higher level, ignoring warnings.
Before import tensorflow, add the following code to the code:
Import OS;
Import OS;
Import OS os.environ [‘HDF5_ DISABLE_ VERSION_ Check ‘] =’2’
my personal test: this method is really useful!
Read More:
- Problems and solutions of error reporting in using swiper in Vue
- Solutions to Django is not importable in this environment
- The python version output from the command line is inconsistent with the python version in the current CONDA environment
- Solve the problem of Python in Windows environment: Fatal error in launcher: Unable to create process using’”‘ in pip installation
- Solution of Prophet error reporting when installing R package in Kubuntu virtual machine environment
- Solutions to yarn install error reporting
- About maven Pom.xml Personal solutions to reporting errors!!!
- Mayavi fails to get wglchoosepixelformatarb and other error reporting solutions
- Points for attention in setting up robot framework + Python 3.7.0 environment
- Maven project pom.xml Solutions to error reporting
- Pytorch RuntimeError: Error(s) in loading state_ dict for Dat aParallel:.. function submit.py Solutions for reporting errors
- How to solve the problem of error reporting in the introduction of Python Django no module name ‘Django. Utils. Six’
- Brief introduction of idea Lombok and solutions for reporting red and wrong
- XLRDError: Excel xlsx file; Not supported error reporting solutions
- Error reporting processing of pyinstaller packaging geopandas environment
- Anaconda create environment, delete environment, activate environment, exit environment
- Game development unity xlua framework knowledge series: this type must add to csharpcalllua error reporting solutions
- Solutions to the failure of importing Python 3.7 SSL module
- import org.junit.Test And @ test error reporting — solutions
- Python installation pysimplegui error reporting solution