module 'h5py' has no attribute 'File' 解决办法

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/shaoyou223/article/details/82669271

module 'h5py' has no attribute 'File'

这个问题通常是由于h5py这个库的不规范造成。

比如说,我是混着使用pip和conda,可能这就是使得出现这个问题的原因

我的解决办法是

        pip uninstall h5py

        conda install h5py

这个问题就解决了。

这个解决办法同样适用scipy库调用的问题。

猜你喜欢

转载自blog.csdn.net/shaoyou223/article/details/82669271