成功解决 File "h5py\h5t.pxd", line 14, in init h5py._conv (D:\Build\h5py\h5py-2.7.0\h5py\_conv.c:7539)

简介: 成功解决 File "h5py\h5t.pxd", line 14, in init h5py._conv (D:\Build\h5py\h5py-2.7.0\h5py\_conv.c:7539)

解决问题


File "h5py\h5t.pxd", line 14, in init h5py._conv (D:\Build\h5py\h5py-2.7.0\h5py\_conv.c:7539)

 File "h5py\numpy.pxd", line 66, in init h5py.h5t (D:\Build\h5py\h5py-2.7.0\h5py\h5t.c:22512)

AttributeError: module 'numpy' has no attribute 'dtype'


image.png




解决思路


属性错误:模块“numpy”没有属性“dtype”







解决方法


将h5py库函数文件进行替换,利用Anaconda代替原先python下载下来的库。

image.png



哈哈,大功告成!



相关文章
|
4天前
|
Python
__init__.py
【6月更文挑战第30天】
9 3
|
2月前
|
机器学习/深度学习 并行计算 安全
ImportError: DLL load failed while importing libpaddle: 找不到指定的模块。问题处理
【5月更文挑战第12天】ImportError: DLL load failed while importing libpaddle: 找不到指定的模块。问题处理
364 0
|
Python
命令行import torch正常,但pycharm中显示“No module named torch”解决方法
首先检查环境导入是否有问题,工具栏file–settings–project–project interpreter,在这里添加配置好的conda环境,注意添加时要选中对应的conda environment
415 0
安装 xgboost 报错ERROR: Command "python setup.py egg_info" failed with error code 1 in /private/var/fold
安装 xgboost 报错ERROR: Command "python setup.py egg_info" failed with error code 1 in /private/var/fold
安装 xgboost 报错ERROR: Command "python setup.py egg_info" failed with error code 1 in /private/var/fold
成功解决 bs4\__init__.py:219: UserWarning: "b'.'" looks like a filename, not markup. You should probably
成功解决 bs4\__init__.py:219: UserWarning: "b'.'" looks like a filename, not markup. You should probably
|
算法框架/工具 Caffe
File "/usr/local/lib/python3.5/site-packages/dateutil/rrule.py", line 55 raise ValueError
File "/usr/local/lib/python3.5/site-packages/dateutil/rrule.py", line 55 raise ValueError
92 0
|
Python
Command "python setup.py egg_info" failed with error code 1
Command "python setup.py egg_info" failed with error code 1
126 0
Command "python setup.py egg_info" failed with error code 1
|
Python
python报错——Command “python setup.py egg_info“ failed with error code 1 in /tmp/pip-build-wq8dcdx6/cry
python报错——Command “python setup.py egg_info“ failed with error code 1 in /tmp/pip-build-wq8dcdx6/cry
534 0
python报错——Command “python setup.py egg_info“ failed with error code 1 in /tmp/pip-build-wq8dcdx6/cry
成功解决h5py\_init_.py:26:FutureWarning: Conversion of the second argument of issubdtype from `float` to
成功解决h5py\_init_.py:26:FutureWarning: Conversion of the second argument of issubdtype from `float` to
成功解决h5py\_init_.py:26:FutureWarning: Conversion of the second argument of issubdtype from `float` to
成功解决bs4\__init__.py:181: UserWarning: No parser was explicitly specified, so I'm using the best avai
成功解决bs4\__init__.py:181: UserWarning: No parser was explicitly specified, so I'm using the best avai