AttributeError: h5py.h5.H5PYConfig‘ has no attribute ‘__reduce_cython__‘
Posted Data+Science+Insight
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了AttributeError: h5py.h5.H5PYConfig‘ has no attribute ‘__reduce_cython__‘相关的知识,希望对你有一定的参考价值。
AttributeError: h5py.h5.H5PYConfig' has no attribute '__reduce_cython__'
目录
AttributeError: h5py.h5.H5PYConfig' has no attribute '__reduce_cython__'
AttributeError: h5py.h5.H5PYConfig' has no attribute '__reduce_cython__' #1477
启示:
如果对应的错误日志在百度和bing都没有找到满意的结果,快速找google不要犹豫,犹豫就会浪费时间,时间宝贵不用我教你;
如果条件允许,自己搞个梯子,这样就可以使用google查找错误日志,事半功倍;
如果条件不允许,自己去找一些免费的梯子,速度慢一点也能用,毕竟是免费的不要太苛刻;
问题:
pyinstaller --clean --onefile LSTM_prediction.py
解决:
多次运行pip uninstall h5py
注意:一定要多次运行,以笔者为例,两次运行发现删除了两个版本的h5py;
接着这行如下命令:
conda install -c anaconda h5py
Run pip uninstall h5py
multiple times to remove multiple installations (this is in conda environment).
Then run conda install -c anaconda h5py
.
That fixed it for me.
完整错误:
AttributeError: h5py.h5.H5PYConfig' has no attribute '__reduce_cython__' #1477
参考:AttributeError: h5py.h5.H5PYConfig' has no attribute '__reduce_cython__' #1477
参考:h5py
以上是关于AttributeError: h5py.h5.H5PYConfig‘ has no attribute ‘__reduce_cython__‘的主要内容,如果未能解决你的问题,请参考以下文章
AttributeError: 'RDD' 对象没有属性 'show'
AttributeError:“NumpyArrayIterator”对象没有属性“类”
AttributeError:模块 'dbus' 没有属性 'lowlevel'