擅长:python、mysql、java
<p>引用托马斯<a href="https://stackoverflow.com/questions/5537618/memory-errors-and-list-limits">this answer</a>的话:</p>
<blockquote>
<p>The <code>MemoryError</code> exception that you are seeing is the direct result of running out of available RAM. This could be caused by either the 2GB per program limit imposed by Windows (<a href="http://msdn.microsoft.com/en-us/library/aa366778%28v=vs.85%29.aspx#memory_limits" rel="nofollow noreferrer">32bit programs</a>), or lack of available RAM on your computer. (This <a href="https://stackoverflow.com/questions/4285185/python-memory-limit">link</a> is to a previous question). You should be able to extend the 2GB by using 64bit copy of Python, provided you are using a 64bit copy of windows.</p>
</blockquote>
<p>因此,请尝试64位的Python副本,或者提供有关您的平台和Python版本的更多详细信息。在</p>