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

相關文章
相關標籤/搜索