【Debug记录】numpy.core._exceptions.MemoryError: Unable to allocate 623. MiB for an array with shape xxx

numpy.core._exceptions.MemoryError: Unable to allocate 623. MiB for an array with shape xxx

报错原因: 用numpy处理大数组,消耗太太,内存不足
解决方案: 修改PyCharm的运行内存

Help -> Find Action -> 输入 “VM Options” -> 选择“Edit Custom VM Options” -> 选择pycharm.vmoptions -> 以记事本形式打开

修改-Xmx1773m 为 -Xmx4096m 分配4G内存(按需设定),保存后重启pycharm即可

参考博文:添加链接描述

猜你喜欢

转载自blog.csdn.net/m0_51141265/article/details/129578829