相关文章推荐
安静的黄豆  ·  spring-boot接入websocket ...·  1 月前    · 
直爽的黄花菜  ·  Excel - Tableau·  3 月前    · 
苦恼的手套  ·  【行业资讯】CKEditor 5 ...·  2 年前    · 
挂过科的香菜  ·  pg数据库if语句-掘金·  2 年前    · 
<ipython-input-52-62a6baf77ac9> in <module>
      1 import numpy as np
----> 2 a = np.zeros((387256, 31894))
MemoryError: Unable to allocate array with shape (387256, 31894) and data type float64

这个小小的代码片段在我的16GB内存的笔记本上运行得非常好,但是当我在另一台64GB内存的机器上运行这个确切的代码时,它却出现了这个内存错误。我检查了64GB内存的机器的内存使用情况,它说它仍然有62GB的可用内存,因为我没有在上面做任何其他事情。这个内存错误会不会是由于其他原因造成的?