ERROR: Could not build wheels for h5py which use PEP 517 and cannot be installed directly

948 views
Skip to first unread message

Ayub Qosimov

unread,
Nov 19, 2020, 11:42:25 AM11/19/20
to Keras-users
Hi
I had this error while installing Keras. Could anyone help my please? (I need Keras for my project)
>> pip install Keras
Collecting Keras
  Using cached Keras-2.4.3-py2.py3-none-any.whl (36 kB)
Requirement already satisfied: pyyaml in c:\users\user\appdata\local\programs\python\python37-32\lib\site-packages (from Keras
) (5.3.1)
Requirement already satisfied: numpy>=1.9.1 in c:\users\user\appdata\local\programs\python\python37-32\lib\site-packages (from
 Keras) (1.18.4)
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: scipy>=0.14 in c:\users\user\appdata\local\programs\python\python37-32\lib\site-packages (from
Keras) (1.5.4)
Collecting cached-property; python_version < "3.8"
  Using cached cached_property-1.5.2-py2.py3-none-any.whl (7.6 kB)
Building wheels for collected packages: h5py
  Building wheel for h5py (PEP 517) ... error
  ERROR: Command errored out with exit status 1:
   command: 'c:\users\user\appdata\local\programs\python\python37-32\python.exe' 'c:\users\user\appdata\local\programs\python\
python37-32\lib\site-packages\pip\_vendor\pep517\_in_process.py' build_wheel 'C:\Users\User\AppData\Local\Temp\tmpeen5c9lo'
       cwd: C:\Users\User\AppData\Local\Temp\pip-install-6hcijcfc\h5py
  Complete output (70 lines):
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build\lib.win32-3.7
  creating build\lib.win32-3.7\h5py
  copying h5py\h5py_warnings.py -> build\lib.win32-3.7\h5py
  copying h5py\ipy_completer.py -> build\lib.win32-3.7\h5py
  copying h5py\version.py -> build\lib.win32-3.7\h5py
  copying h5py\__init__.py -> build\lib.win32-3.7\h5py
  creating build\lib.win32-3.7\h5py\_hl
  copying h5py\_hl\attrs.py -> build\lib.win32-3.7\h5py\_hl
  copying h5py\_hl\base.py -> build\lib.win32-3.7\h5py\_hl
  copying h5py\_hl\compat.py -> build\lib.win32-3.7\h5py\_hl
  copying h5py\_hl\dataset.py -> build\lib.win32-3.7\h5py\_hl
  copying h5py\_hl\datatype.py -> build\lib.win32-3.7\h5py\_hl
  copying h5py\_hl\dims.py -> build\lib.win32-3.7\h5py\_hl
  copying h5py\_hl\files.py -> build\lib.win32-3.7\h5py\_hl
  copying h5py\_hl\filters.py -> build\lib.win32-3.7\h5py\_hl
  copying h5py\_hl\group.py -> build\lib.win32-3.7\h5py\_hl
  copying h5py\_hl\selections.py -> build\lib.win32-3.7\h5py\_hl
  copying h5py\_hl\selections2.py -> build\lib.win32-3.7\h5py\_hl
  copying h5py\_hl\vds.py -> build\lib.win32-3.7\h5py\_hl
  copying h5py\_hl\__init__.py -> build\lib.win32-3.7\h5py\_hl
  creating build\lib.win32-3.7\h5py\tests
  copying h5py\tests\common.py -> build\lib.win32-3.7\h5py\tests
  copying h5py\tests\conftest.py -> build\lib.win32-3.7\h5py\tests
  copying h5py\tests\test_attribute_create.py -> build\lib.win32-3.7\h5py\tests
  copying h5py\tests\test_attrs.py -> build\lib.win32-3.7\h5py\tests
  copying h5py\tests\test_attrs_data.py -> build\lib.win32-3.7\h5py\tests
  copying h5py\tests\test_base.py -> build\lib.win32-3.7\h5py\tests
  copying h5py\tests\test_big_endian_file.py -> build\lib.win32-3.7\h5py\tests
  copying h5py\tests\test_completions.py -> build\lib.win32-3.7\h5py\tests
  copying h5py\tests\test_dataset.py -> build\lib.win32-3.7\h5py\tests
  copying h5py\tests\test_dataset_getitem.py -> build\lib.win32-3.7\h5py\tests
  copying h5py\tests\test_dataset_swmr.py -> build\lib.win32-3.7\h5py\tests
  copying h5py\tests\test_datatype.py -> build\lib.win32-3.7\h5py\tests
  copying h5py\tests\test_dimension_scales.py -> build\lib.win32-3.7\h5py\tests
  copying h5py\tests\test_dims_dimensionproxy.py -> build\lib.win32-3.7\h5py\tests
  copying h5py\tests\test_dtype.py -> build\lib.win32-3.7\h5py\tests
  copying h5py\tests\test_errors.py -> build\lib.win32-3.7\h5py\tests
  copying h5py\tests\test_file.py -> build\lib.win32-3.7\h5py\tests
  copying h5py\tests\test_file2.py -> build\lib.win32-3.7\h5py\tests
  copying h5py\tests\test_file_image.py -> build\lib.win32-3.7\h5py\tests
  copying h5py\tests\test_filters.py -> build\lib.win32-3.7\h5py\tests
  copying h5py\tests\test_group.py -> build\lib.win32-3.7\h5py\tests
  copying h5py\tests\test_h5.py -> build\lib.win32-3.7\h5py\tests
  copying h5py\tests\test_h5d_direct_chunk.py -> build\lib.win32-3.7\h5py\tests
  copying h5py\tests\test_h5f.py -> build\lib.win32-3.7\h5py\tests
  copying h5py\tests\test_h5p.py -> build\lib.win32-3.7\h5py\tests
  copying h5py\tests\test_h5pl.py -> build\lib.win32-3.7\h5py\tests
  copying h5py\tests\test_h5t.py -> build\lib.win32-3.7\h5py\tests
  copying h5py\tests\test_objects.py -> build\lib.win32-3.7\h5py\tests
  copying h5py\tests\test_selections.py -> build\lib.win32-3.7\h5py\tests
  copying h5py\tests\test_slicing.py -> build\lib.win32-3.7\h5py\tests
  copying h5py\tests\__init__.py -> build\lib.win32-3.7\h5py\tests
  creating build\lib.win32-3.7\h5py\tests\data_files
  copying h5py\tests\data_files\__init__.py -> build\lib.win32-3.7\h5py\tests\data_files
  creating build\lib.win32-3.7\h5py\tests\test_vds
  copying h5py\tests\test_vds\test_highlevel_vds.py -> build\lib.win32-3.7\h5py\tests\test_vds
  copying h5py\tests\test_vds\test_lowlevel_vds.py -> build\lib.win32-3.7\h5py\tests\test_vds
  copying h5py\tests\test_vds\test_virtual_source.py -> build\lib.win32-3.7\h5py\tests\test_vds
  copying h5py\tests\test_vds\__init__.py -> build\lib.win32-3.7\h5py\tests\test_vds
  copying h5py\tests\data_files\vlen_string_dset.h5 -> build\lib.win32-3.7\h5py\tests\data_files
  copying h5py\tests\data_files\vlen_string_dset_utc.h5 -> build\lib.win32-3.7\h5py\tests\data_files
  copying h5py\tests\data_files\vlen_string_s390x.h5 -> build\lib.win32-3.7\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: [WinError 126] The specified module could not be found
  ----------------------------------------
  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

Lance Norskog

unread,
Nov 19, 2020, 2:49:49 PM11/19/20
to Ayub Qosimov, Keras-users
Have you tried using Colab? Installing and maintaining these installs on your own is going to be frustrating, and will waste your time.
Colab is free, and I use it daily. You already have a Gmail account, Colab is easy to set up and start using.


Cheers,

Lance Norskog

--
You received this message because you are subscribed to the Google Groups "Keras-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to keras-users...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/keras-users/c9d343b7-acd1-4e52-a082-aedb3e0223ffn%40googlegroups.com.


--
Lance Norskog
lance....@gmail.com
Redwood City, CA

Ayub Qosimov

unread,
Nov 20, 2020, 9:21:16 AM11/20/20
to Keras-users
Thank u, sirr! Appreciate that. I made it to the Jupyter Notebook

пятница, 20 ноября 2020 г. в 00:49:49 UTC+5, lance....@gmail.com:
Message has been deleted

Vibunesh N T

unread,
Dec 9, 2022, 2:26:17 AM12/9/22
to Keras-users
Can you describe how you resolved this issue?  
Reply all
Reply to author
Forward
0 new messages