MemoryError with Pickle in Python

后端 未结 3 1837
傲寒
傲寒 2021-02-13 21:12

I am processing some data and I have stored the results in three dictionaries, and I have saved them to the disk with Pickle. Each dictionary has 500-1000MB.

Now I am l

3条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-02-13 21:46

    I supose you use 32bits Python and it has 4GB limited. You should use 64 bits instead of 32 bits. I have try it, my pickled dict beyond 1.7GB, and I didn't get any problem except time goes longer.

提交回复
热议问题