[AIRFLOW] Memory error while using pip install Airflow

Posted on 2017-03-10 13:58  LoveAI  阅读(553)  评论(0编辑  收藏  举报

File /home/ubuntu/venv/venv/local/lib/python2.7/site-packages/pip/_vendor/cachecontrol/serialize.py, line 87, in dumps     ).encode(utf8),

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 environent, as matplotlib is ~50mb.

A simpler solution, until pip is patched to use a constant-space caching algorithm, is to run pip with --no-cache-dir to avoid the cache:

$ pip --no-cache-dir install airflow