关于AttributeError: type object ‘h5py.h5.H5PYConfig‘ has no attribute ‘reduce_cython‘问题解决。
编辑器是Pycharm,连接的Anaconda*python3.8,原程序中想要导入tensorflow的一些包,但出现了AttributeError: type object ‘h5py.h5.H5PYConfig‘ has no attribute ‘reduce_cython‘问题。
亲测有效的解决办法是:
在:\Anaconda\envs*\Lib\site-packages
删除和h5py有关的所有文件夹。
然后在pycharm中通过setting -project interpreter 添加h5py,tensorflow即可。
参照:https://www.freesion.com/article/6559927463/