title: Errors in installing keras using pip?
body: <p>I am trying to install Keras library using pip in windows 10. I have all the requirements installed, python&gt;=3.8, pip&gt;=20.0.0, NumPy, pandas, matplotlib, virtualenv. But I'm getting the following error.</p>
  <pre><code>(keras) C:\Users\namba&gt;pip install keras
  Collecting keras
    Using cached Keras-2.4.3-py2.py3-none-any.whl (36 kB)
  Collecting h5py
    Using cached h5py-3.1.0.tar.gz (371 kB)
    Installing build dependencies ... done
    Getting requirements to build wheel ... done
    Installing backend dependencies ... done
      Preparing wheel metadata ... done
  Requirement already satisfied: numpy&gt;=1.9.1 in c:\users\namba\keras\lib\site-packages (from keras) (1.19.4)
  Collecting pyyaml
    Using cached PyYAML-5.3.1-cp38-cp38-win32.whl (199 kB)
  Requirement already satisfied: scipy&gt;=0.14 in c:\users\namba\keras\lib\site-packages (from keras) (1.5.4)
  Building wheels for collected packages: h5py
    Building wheel for h5py (PEP 517) ... error
    ERROR: Command errored out with exit status 1:
     command: 'c:\users\namba\keras\scripts\python.exe' 'c:\users\namba\keras\lib\site-packages\pip\_vendor\pep517\_in_process.py' build_wheel 'C:\Users\namba\AppData\Local\Temp\tmp0_p1fdyc'
         cwd: C:\Users\namba\AppData\Local\Temp\pip-install-k9e6wdb4\h5py
    Complete output (70 lines):
    running bdist_wheel
    running build
    running build_py
    creating build
    creating build\lib.win32-3.8
    creating build\lib.win32-3.8\h5py
    copying h5py\h5py_warnings.py -&gt; build\lib.win32-3.8\h5py
    copying h5py\ipy_completer.py -&gt; build\lib.win32-3.8\h5py
    copying h5py\version.py -&gt; build\lib.win32-3.8\h5py
    copying h5py\__init__.py -&gt; build\lib.win32-3.8\h5py
    creating build\lib.win32-3.8\h5py\_hl
    copying h5py\_hl\attrs.py -&gt; build\lib.win32-3.8\h5py\_hl
    copying h5py\_hl\base.py -&gt; build\lib.win32-3.8\h5py\_hl
    copying h5py\_hl\compat.py -&gt; build\lib.win32-3.8\h5py\_hl
    copying h5py\_hl\dataset.py -&gt; build\lib.win32-3.8\h5py\_hl
    copying h5py\_hl\datatype.py -&gt; build\lib.win32-3.8\h5py\_hl
    copying h5py\_hl\dims.py -&gt; build\lib.win32-3.8\h5py\_hl
    copying h5py\_hl\files.py -&gt; build\lib.win32-3.8\h5py\_hl
    copying h5py\_hl\filters.py -&gt; build\lib.win32-3.8\h5py\_hl
    copying h5py\_hl\group.py -&gt; build\lib.win32-3.8\h5py\_hl
    copying h5py\_hl\selections.py -&gt; build\lib.win32-3.8\h5py\_hl
    copying h5py\_hl\selections2.py -&gt; build\lib.win32-3.8\h5py\_hl
    copying h5py\_hl\vds.py -&gt; build\lib.win32-3.8\h5py\_hl
    copying h5py\_hl\__init__.py -&gt; build\lib.win32-3.8\h5py\_hl
    creating build\lib.win32-3.8\h5py\tests
    copying h5py\tests\common.py -&gt; build\lib.win32-3.8\h5py\tests
    copying h5py\tests\conftest.py -&gt; build\lib.win32-3.8\h5py\tests
    copying h5py\tests\test_attribute_create.py -&gt; build\lib.win32-3.8\h5py\tests
    copying h5py\tests\test_attrs.py -&gt; build\lib.win32-3.8\h5py\tests
    copying h5py\tests\test_attrs_data.py -&gt; build\lib.win32-3.8\h5py\tests
    copying h5py\tests\test_base.py -&gt; build\lib.win32-3.8\h5py\tests
    copying h5py\tests\test_big_endian_file.py -&gt; build\lib.win32-3.8\h5py\tests
    copying h5py\tests\test_completions.py -&gt; build\lib.win32-3.8\h5py\tests
    copying h5py\tests\test_dataset.py -&gt; build\lib.win32-3.8\h5py\tests
    copying h5py\tests\test_dataset_getitem.py -&gt; build\lib.win32-3.8\h5py\tests
    copying h5py\tests\test_dataset_swmr.py -&gt; build\lib.win32-3.8\h5py\tests
    copying h5py\tests\test_datatype.py -&gt; build\lib.win32-3.8\h5py\tests
    copying h5py\tests\test_dimension_scales.py -&gt; build\lib.win32-3.8\h5py\tests
    copying h5py\tests\test_dims_dimensionproxy.py -&gt; build\lib.win32-3.8\h5py\tests
    copying h5py\tests\test_dtype.py -&gt; build\lib.win32-3.8\h5py\tests
    copying h5py\tests\test_errors.py -&gt; build\lib.win32-3.8\h5py\tests
    copying h5py\tests\test_file.py -&gt; build\lib.win32-3.8\h5py\tests
    copying h5py\tests\test_file2.py -&gt; build\lib.win32-3.8\h5py\tests
    copying h5py\tests\test_file_image.py -&gt; build\lib.win32-3.8\h5py\tests
    copying h5py\tests\test_filters.py -&gt; build\lib.win32-3.8\h5py\tests
    copying h5py\tests\test_group.py -&gt; build\lib.win32-3.8\h5py\tests
    copying h5py\tests\test_h5.py -&gt; build\lib.win32-3.8\h5py\tests
    copying h5py\tests\test_h5d_direct_chunk.py -&gt; build\lib.win32-3.8\h5py\tests
    copying h5py\tests\test_h5f.py -&gt; build\lib.win32-3.8\h5py\tests
    copying h5py\tests\test_h5p.py -&gt; build\lib.win32-3.8\h5py\tests
    copying h5py\tests\test_h5pl.py -&gt; build\lib.win32-3.8\h5py\tests
    copying h5py\tests\test_h5t.py -&gt; build\lib.win32-3.8\h5py\tests
    copying h5py\tests\test_objects.py -&gt; build\lib.win32-3.8\h5py\tests
    copying h5py\tests\test_selections.py -&gt; build\lib.win32-3.8\h5py\tests
    copying h5py\tests\test_slicing.py -&gt; build\lib.win32-3.8\h5py\tests
    copying h5py\tests\__init__.py -&gt; build\lib.win32-3.8\h5py\tests
    creating build\lib.win32-3.8\h5py\tests\data_files
    copying h5py\tests\data_files\__init__.py -&gt; build\lib.win32-3.8\h5py\tests\data_files
    creating build\lib.win32-3.8\h5py\tests\test_vds
    copying h5py\tests\test_vds\test_highlevel_vds.py -&gt; build\lib.win32-3.8\h5py\tests\test_vds
    copying h5py\tests\test_vds\test_lowlevel_vds.py -&gt; build\lib.win32-3.8\h5py\tests\test_vds
    copying h5py\tests\test_vds\test_virtual_source.py -&gt; build\lib.win32-3.8\h5py\tests\test_vds
    copying h5py\tests\test_vds\__init__.py -&gt; build\lib.win32-3.8\h5py\tests\test_vds
    copying h5py\tests\data_files\vlen_string_dset.h5 -&gt; build\lib.win32-3.8\h5py\tests\data_files
    copying h5py\tests\data_files\vlen_string_dset_utc.h5 -&gt; build\lib.win32-3.8\h5py\tests\data_files
    copying h5py\tests\data_files\vlen_string_s390x.h5 -&gt; build\lib.win32-3.8\h5py\tests\data_files
    running build_ext
    Loading library to get version: hdf5.dll
    error: Unable to load dependency HDF5, make sure HDF5 is installed properly
    error: Could not find module 'hdf5.dll' (or one of its dependencies). Try using the full path with constructor syntax.
    ----------------------------------------
    ERROR: Failed building wheel for h5py
  Failed to build h5py
  ERROR: Could not build wheels for h5py which use PEP 517 and cannot be installed directly
  
  </code></pre>
  <p>I thought this error was caused due to improper installation of h5py &amp; hdf5. I tried installing them using <code>pip install h5py</code> but then I encountered the following error:</p>
  <pre><code>(keras) C:\Users\namba&gt;pip install h5py
  Collecting h5py
    Using cached h5py-3.1.0.tar.gz (371 kB)
    Installing build dependencies ... done
    Getting requirements to build wheel ... done
    Installing backend dependencies ... done
      Preparing wheel metadata ... done
  Requirement already satisfied: numpy&gt;=1.17.5; python_version == &quot;3.8&quot; in c:\users\namba\keras\lib\site-packages (from h5py) (1.19.4)
  Building wheels for collected packages: h5py
    Building wheel for h5py (PEP 517) ... error
    ERROR: Command errored out with exit status 1:
     command: 'c:\users\namba\keras\scripts\python.exe' 'c:\users\namba\keras\lib\site-packages\pip\_vendor\pep517\_in_process.py' build_wheel 'C:\Users\namba\AppData\Local\Temp\tmpid2mdza_'
         cwd: C:\Users\namba\AppData\Local\Temp\pip-install-yppxk_bm\h5py
    Complete output (70 lines):
    running bdist_wheel
    running build
    running build_py
    creating build
    creating build\lib.win32-3.8
    creating build\lib.win32-3.8\h5py
    copying h5py\h5py_warnings.py -&gt; build\lib.win32-3.8\h5py
    copying h5py\ipy_completer.py -&gt; build\lib.win32-3.8\h5py
    copying h5py\version.py -&gt; build\lib.win32-3.8\h5py
    copying h5py\__init__.py -&gt; build\lib.win32-3.8\h5py
    creating build\lib.win32-3.8\h5py\_hl
    copying h5py\_hl\attrs.py -&gt; build\lib.win32-3.8\h5py\_hl
    copying h5py\_hl\base.py -&gt; build\lib.win32-3.8\h5py\_hl
    copying h5py\_hl\compat.py -&gt; build\lib.win32-3.8\h5py\_hl
    copying h5py\_hl\dataset.py -&gt; build\lib.win32-3.8\h5py\_hl
    copying h5py\_hl\datatype.py -&gt; build\lib.win32-3.8\h5py\_hl
    copying h5py\_hl\dims.py -&gt; build\lib.win32-3.8\h5py\_hl
    copying h5py\_hl\files.py -&gt; build\lib.win32-3.8\h5py\_hl
    copying h5py\_hl\filters.py -&gt; build\lib.win32-3.8\h5py\_hl
    copying h5py\_hl\group.py -&gt; build\lib.win32-3.8\h5py\_hl
    copying h5py\_hl\selections.py -&gt; build\lib.win32-3.8\h5py\_hl
    copying h5py\_hl\selections2.py -&gt; build\lib.win32-3.8\h5py\_hl
    copying h5py\_hl\vds.py -&gt; build\lib.win32-3.8\h5py\_hl
    copying h5py\_hl\__init__.py -&gt; build\lib.win32-3.8\h5py\_hl
    creating build\lib.win32-3.8\h5py\tests
    copying h5py\tests\common.py -&gt; build\lib.win32-3.8\h5py\tests
    copying h5py\tests\conftest.py -&gt; build\lib.win32-3.8\h5py\tests
    copying h5py\tests\test_attribute_create.py -&gt; build\lib.win32-3.8\h5py\tests
    copying h5py\tests\test_attrs.py -&gt; build\lib.win32-3.8\h5py\tests
    copying h5py\tests\test_attrs_data.py -&gt; build\lib.win32-3.8\h5py\tests
    copying h5py\tests\test_base.py -&gt; build\lib.win32-3.8\h5py\tests
    copying h5py\tests\test_big_endian_file.py -&gt; build\lib.win32-3.8\h5py\tests
    copying h5py\tests\test_completions.py -&gt; build\lib.win32-3.8\h5py\tests
    copying h5py\tests\test_dataset.py -&gt; build\lib.win32-3.8\h5py\tests
    copying h5py\tests\test_dataset_getitem.py -&gt; build\lib.win32-3.8\h5py\tests
    copying h5py\tests\test_dataset_swmr.py -&gt; build\lib.win32-3.8\h5py\tests
    copying h5py\tests\test_datatype.py -&gt; build\lib.win32-3.8\h5py\tests
    copying h5py\tests\test_dimension_scales.py -&gt; build\lib.win32-3.8\h5py\tests
    copying h5py\tests\test_dims_dimensionproxy.py -&gt; build\lib.win32-3.8\h5py\tests
    copying h5py\tests\test_dtype.py -&gt; build\lib.win32-3.8\h5py\tests
    copying h5py\tests\test_errors.py -&gt; build\lib.win32-3.8\h5py\tests
    copying h5py\tests\test_file.py -&gt; build\lib.win32-3.8\h5py\tests
    copying h5py\tests\test_file2.py -&gt; build\lib.win32-3.8\h5py\tests
    copying h5py\tests\test_file_image.py -&gt; build\lib.win32-3.8\h5py\tests
    copying h5py\tests\test_filters.py -&gt; build\lib.win32-3.8\h5py\tests
    copying h5py\tests\test_group.py -&gt; build\lib.win32-3.8\h5py\tests
    copying h5py\tests\test_h5.py -&gt; build\lib.win32-3.8\h5py\tests
    copying h5py\tests\test_h5d_direct_chunk.py -&gt; build\lib.win32-3.8\h5py\tests
    copying h5py\tests\test_h5f.py -&gt; build\lib.win32-3.8\h5py\tests
    copying h5py\tests\test_h5p.py -&gt; build\lib.win32-3.8\h5py\tests
    copying h5py\tests\test_h5pl.py -&gt; build\lib.win32-3.8\h5py\tests
    copying h5py\tests\test_h5t.py -&gt; build\lib.win32-3.8\h5py\tests
    copying h5py\tests\test_objects.py -&gt; build\lib.win32-3.8\h5py\tests
    copying h5py\tests\test_selections.py -&gt; build\lib.win32-3.8\h5py\tests
    copying h5py\tests\test_slicing.py -&gt; build\lib.win32-3.8\h5py\tests
    copying h5py\tests\__init__.py -&gt; build\lib.win32-3.8\h5py\tests
    creating build\lib.win32-3.8\h5py\tests\data_files
    copying h5py\tests\data_files\__init__.py -&gt; build\lib.win32-3.8\h5py\tests\data_files
    creating build\lib.win32-3.8\h5py\tests\test_vds
    copying h5py\tests\test_vds\test_highlevel_vds.py -&gt; build\lib.win32-3.8\h5py\tests\test_vds
    copying h5py\tests\test_vds\test_lowlevel_vds.py -&gt; build\lib.win32-3.8\h5py\tests\test_vds
    copying h5py\tests\test_vds\test_virtual_source.py -&gt; build\lib.win32-3.8\h5py\tests\test_vds
    copying h5py\tests\test_vds\__init__.py -&gt; build\lib.win32-3.8\h5py\tests\test_vds
    copying h5py\tests\data_files\vlen_string_dset.h5 -&gt; build\lib.win32-3.8\h5py\tests\data_files
    copying h5py\tests\data_files\vlen_string_dset_utc.h5 -&gt; build\lib.win32-3.8\h5py\tests\data_files
    copying h5py\tests\data_files\vlen_string_s390x.h5 -&gt; build\lib.win32-3.8\h5py\tests\data_files
    running build_ext
    Loading library to get version: hdf5.dll
    error: Unable to load dependency HDF5, make sure HDF5 is installed properly
    error: Could not find module 'hdf5.dll' (or one of its dependencies). Try using the full path with constructor syntax.
    ----------------------------------------
    ERROR: Failed building wheel for h5py
  Failed to build h5py
  ERROR: Could not build wheels for h5py which use PEP 517 and cannot be installed directly
  </code></pre>
  <p>Please suggest any solutions to overcome these errors?</p>