pip install时遇到MemoryError的原因和处理方法

时间:2022-03-24 08:00:24

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

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

pip install时遇到MemoryError的原因和处理方法

报错的原因大致如下:(详细细节可以查看此处



**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.



** 解决办法:加个参数即可:

pip --no-cache-dir install pyspark

pip install时遇到MemoryError的原因和处理方法