Closed sachinkmohan closed 4 years ago
Thought on the internet various searches were regarding python 2.7 vs python 3+ versions, the issue got resolved when I downgraded my h5py version from 3.0.0 to 2.10.0 in pip using the below command.
pip install 'h5py<3.0.0'
TypeError: a bytes-like object is required, not 'str'
The code is working fine on conda environments, but when I switch to pip installation. I get the following error while saving .h5 file after ever epoch
OS : Linux TF version : 1.14.0 Keras: 2.2.5
This error happens because in python3, data are formatted as bytes and not strings. Any idea on how to solve this one.