问题出现:
AttributeError: 'str' object has no attribute 'decode'
问题解决:
pip install 'h5py<3.0.0' -i https://pypi.tuna.tsinghua.edu.cn/simple
文章讨论了在使用Python时遇到的AttributeError,特别提到在尝试使用h5py库时,由于版本问题导致。解决方法是通过pip安装特定版本的h5py(3.0.0之前),并指定了中国清华大学镜像源。
问题出现:
AttributeError: 'str' object has no attribute 'decode'
问题解决:
pip install 'h5py<3.0.0' -i https://pypi.tuna.tsinghua.edu.cn/simple
516

被折叠的 条评论
为什么被折叠?