When I save weights during training my CNN model using keras, it says ImportError:'save_weights' requires h5py
, but I have already installed h5py.
I would greatly appreciate if someone could explain how to fix this issue.
I was getting the same error as you. I installed all the requirements listed here: https://github.com/fchollet/keras/issues/3426
Finally just needed to reboot and it started working.
Just install necessary packages
sudo apt-get install libhdf5-dev
pip install h5py
If you are using windows and python IDE, open cmd
and input following commands:
pip install h5py
pip install cython
I hope it helps.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With