ModuleNotFoundError: No module named h5py
This error occurs because you are trying to import module h5py, but it is not installed in your python environment.
To install the module, execute the following command in termanal:
pip install h5py
To install the module inside Google Colab, Kaggle/Jupyter Notebook or ipython environment, execute the following code line/cell:
!pip install h5py
How it works:
pip - is a standard packet manager in python. This program can install missing module in your local development environment or current Google Colab/Kaggle/Jupyter Notebook session.
! - exclamation mark instructs interactive environment to interpret line/cell content as shell command, not as python code. This is needed because pip command should be executed in shell.
You have already made 2 right things: practicing python and googling error output. Those 2 kinds of actions define a developer. Repeat them long enough, and success is inevitable. Consider subscribing to our DEV blog - it definitely will help to learn python coding and best practices