导入h5py出错,多半是在安装时出错了。如果装了anaconda,可以在里面删掉h5py,之后运行程序,如果之后报错module 'h5py' has no attribute 'File'等和h5py相关的函数,可以在cmd中激活TensorFlow,在里面运行:
pip uninstall h5py
conda install h5py
安装完成后,应该就可以正确运行程序了。
导入h5py出错,多半是在安装时出错了。如果装了anaconda,可以在里面删掉h5py,之后运行程序,如果之后报错module 'h5py' has no attribute 'File'等和h5py相关的函数,可以在cmd中激活TensorFlow,在里面运行:
pip uninstall h5py
conda install h5py
安装完成后,应该就可以正确运行程序了。