‘str‘ object has no attribute ‘decode‘:问题解决办法

‘str’ object has no attribute ‘decode’

一般是因为decode方法不匹配导致的
由于此方法是开源文件编写的,我们无法直接将其修改
所以可以使用一些暴力的方法,比如卸载重装

首先使用命令

pip uninstall h5py

然后安装版本比较低的h5py

pip install h5py==2.10

之后就可以正常使用了

猜你喜欢

转载自blog.csdn.net/perfectzxiny/article/details/134767117