ImportError:没有名为multiarray的模块

时间:2018-04-30 12:26:31

标签: pickle

当我运行此代码时:

from numpy.core import multiarray
import cPickle as pickle

exp_number = 13

model.summary()
losses = pickle.load(open('/home/ubuntu/nilmtk/nilmtk/neuralnilm/tmpdata/history_exp' + str(exp_number) + '.pickle' , 'rb'))
test_set = pickle.load(open('/home/ubuntu/nilmtk/nilmtk/neuralnilm/tmpdata/TestSet.pickle', 'rb'))

X_test = test_set['X_test']
Y_test = test_set["Y_test"]

我遇到了这个问题:

  

在()5 exp_number = 15中的ImportError Traceback(最近的最后一次调用)   6用   打开(' / home / ubuntu / nilmtk / nilmtk / neuralnilm / tmpdata / history_exp' +   str(exp_number)+' .pickle' ,' rb')如f:----> 7输=   pickle.load(f)8#加载测试集9   开放(' /home/ubuntu/nilmtk/nilmtk/neuralnilm/tmpdata/TestSet.pickle' ;,   ' rb')为v:

     

ImportError:没有名为multiarray的模块

有人可以帮帮我吗?

0 个答案:

没有答案