loadmat python内存错误(loadmat python memory error)
我是Python新手,我想导入一个大小为850M的matlab结构。 我使用“loadmat”但我收到内存错误:
return self._matrix_reader.array_from_header(header, process)
File "mio5_utils.pyx", line 624, in scipy.io.matlab.mio5_utils.VarReader5.array_from_header (scipy\io\matlab\mio5_utils.c:5401)
File "mio5_utils.pyx", line 653, in scipy.io.matlab.mio5_utils.VarReader5.array_from_header (scipy\io\matlab\mio5_utils.c:4849)
File "mio5_utils.pyx", line 706, in scipy.io.matlab.mio5_utils.VarReader5.read_real_complex (scipy\io\matlab\mio5_utils.c:5578)
File "mio5_utils.pyx", line 424, in scipy.io.matlab.mio5_utils.VarReader5.read_numeric (scipy\io\matlab\mio5_utils.c:3439)
File "mio5_utils.pyx", line 360, in scipy.io.matlab.mio5_utils.VarReader5.read_element (scipy\io\matlab\mio5_utils.c:3164)
File "streams.pyx", line 76, in scipy.io.matlab.streams.GenericStream.read_string (scipy\io\matlab\streams.c:1408)
MemoryError
我在带有3.5G内存的Windows XP上运行python 3.2。 这是我的代码:
from scipy.io import matlab as mio
mat = mio.loadmat(DIR + '/input.mat')
能帮帮我,告诉我应该怎么做才能解决这个问题?
I'm new to Python and I want to import a matlab struct of size 850M to it. I use "loadmat" but I get a memory e