之前运行一直没有出现过的问题,现在换了环境总是出现
AttributeError: module 'h5py' has no attribute 'File'
解决办法:
AttributeError: module 'h5py' has no attribute 'File'
这个问题通常是由于h5py这个库的不规范造成。
比如说,我是混着使用pip和conda,可能这就是使得出现这个问题的原因
我的解决办法是
pip uninstall h5py
conda install h5py
这个问题就解决了。
这个解决办法同样适用scipy库调用的问题。