读取PointCloud数据的HDF5文件时出现错误

时间:2020-01-28 07:29:57

标签: python hdf5 point-cloud-library

每当我尝试读取hdf5文件时都会收到此错误:

OSError:无法打开文件(无法打开文件:name = '/content/sample_data/data/hdf5_data/data_training.h5',errno = 2, 错误消息='没有这样的文件或目录',标志= 0,o_flags = 0)**

代码:

import h5py
with h5py.File('/content/sample_data/data/hdf5_data/data_training.h5', 'r') as f:
   print(f)

解决方案:

已安装软件包

!sudo apt-get install libhdf5-dev
!pip install h5py
import h5py
f = h5py.File('/content/data/hdf5_data/data_testing.h5', 'r')
f

输出:

0 个答案:

没有答案
相关问题