Tag Archives: MemoryError

Python error memoryerror

Python error memoryerror

Python 32bit can only use 2G of memory at most. If the memory is larger than 2G, memoryerror will be reported.

However, 64bit Python has no such limitation, so it is recommended to use 64bit python.
Possible problems: in the past, official libraries of numpy and SciPy only supported 32bit python, but now we should release the corresponding 64bit version.

[Python error] memoryerror

Error report:
(the figure above shows the error report when the server code is running in the virtual machine)

Memory error: it involves reading, saving and writing. The memory is not enough

Solution:
check and install 64 bit python. The pandas and numpy in 64 bit Python are 64 bit, and the memory is larger.

If running in a virtual machine: set the memory size of the virtual machine (this method I use)

run again, and no more errors will be reported: