I'm trying to import the Tensorflow module in my Jupyter notebook in a conda environment, but I get the following error:
AttributeError: type object 'h5py.h5.H5PYConfig' has no attribute '__reduce_cython__'
However, if I open Anaconda Prompt, activate the same enviroment and import tensorflow in the shell, it does work.
Versions:
tensorflow-gpu: 2.2h5py: 2.10
I tried downgrading to different versions (h5py 2.7 and tf-gpu 2.1), but that resulted in a lot more errors of conflicting versions of packages.
Does anyone have an idea why Jupyter is not loading the module and why it is working within the Anaconda shell?
Thanks