燃料数据集导入错误

时间:2017-02-28 09:45:45

标签: python

当我输入fuel.datasets.hdf5时。我收到了以下错误。有谁知道解决方案?

ModuleNotFoundError Traceback (most recent call    last)
<ipython-input-23-9cbd4ef5a9e4> in <module>()
----> 1 from fuel.datasets.hdf5 import H5PYDataset
  2 from fuel.schemes import ShuffledScheme, SequentialScheme
  3 from fuel.streams import DataStream

ModuleNotFoundError:没有名为'fuel.datasets'的模块

1 个答案:

答案 0 :(得分:0)

试试这个 sudo apt-get install libhdf5 sudo pip install h5py 然后导入模块 1.导入h5py 2.从fuel.datasets.hdf5导入H5PYDataset 3.来自fuel.schemes导入ShuffledScheme,SequentialScheme 4.来自fuel.streams导入DataStream