Not enough space to install requirements?


My MWAA environment will not properly initialize because the requirements install fails. There is nothing in the documentation about a download size limit and no way to override this. There is only a 'recommendation' about size because it can cause slowness in updating.

Error log:

2023-05-09T16:13:25.377-04:00 Downloading tensorflow-2.8.2-cp37-cp37m-manylinux2010_x86_64.whl (497.9 MB) 2023-05-09T16:13:27.753-04:00 ERROR: Could not install packages due to an OSError: [Errno 28] No space left on device

asked 5 months ago163 views
1 Answer

Per you may be able to use --no-cache-dir by installing via startup script, i.e.:


if [[ "${MWAA_AIRFLOW_COMPONENT}" != "webserver" ]]
     # place requirements.txt in DAGs folder, and replace existing requirements.txt with an empty text file
     pip3 install --no-cache-dir -r /usr/local/airflow/dags/requirements.txt


You may also install the files from WHL per

answered 5 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions