我一直在尝试导入h5py来读取这种类型的文件。
下面是我的代码:
import h5py
file_1 = h5py.File("Out_fragment.h5py")
print file_1输出为:
Traceback (most recent call last):
File "./week11.py", line 17, in <module>
import h5py
ImportError: No module named h5py我也使用pip install h5py获得了这个模块,但我不确定为什么它似乎没有正确安装。
谢谢。
发布于 2016-12-31 12:40:31
在Ubuntu上。您可以尝试以下三个命令:
sudo pip install cythonsudo apt-get install libhdf5-devsudo pip install h5py发布于 2019-04-10 23:38:57
https://stackoverflow.com/questions/29831052
复制相似问题