keras-team / keras-applications

Reference implementations of popular deep learning models.
Other
2k stars 913 forks source link

Is it possible to remove h5py hard dependency from pip install? #147

Open yongtang opened 4 years ago

yongtang commented 4 years ago

Summary

This is a feature request to see if it is possible to remove hard dependency of h5py from pip install?

At the moment, keras_applications only have two dependencies in setup.py, one is numpy and another is h5py. From the source code in keras_applications, I couldn't find other reference os h5py.

I am raising this issue, because h5py could not be installed on Ubuntu 18.04 + python 3.8 (deadsnake/ppa). Also tensorflow depends on keras_applications so at the moment it is hard to make tensorflow wheel package for python 3.8.

If h5py is removed from setup.py in keras_applications then supporting python 3.8 would be easier for quite a few packages downstream.

Environment

Logs or source codes for reproduction