pip install时遇到MemoryError的缘由和处理方法

前言:同窗们在用pip install的时候,可能会遇到MemoryError的问题

报错以下,看最后一行的memory error关键字:python

报错的缘由大体以下:(详细细节能够查看此处

This error is coming up because, it seems, pip's caching mechanism is trying to read the entire file into memory before caching it… which poses a problem in a limited-memory environment, as matplotlib is ~50mb.

解决办法:加个参数便可:spa

pip --no-cache-dir install pyspark

相关文章
相关标签/搜索