1 Answer
- Newest
- Most votes
- Most comments
0
Per https://github.com/pypa/pip/issues/5816#issuecomment-425410189 you may be able to use --no-cache-dir
by installing via startup script, i.e.:
#!/bin/sh
if [[ "${MWAA_AIRFLOW_COMPONENT}" != "webserver" ]]
then
# 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
fi
See https://docs.aws.amazon.com/mwaa/latest/userguide/using-startup-script.html#create-startup-script
You may also install the files from WHL per https://docs.aws.amazon.com/mwaa/latest/userguide/best-practices-dependencies.html#best-practices-dependencies-python-wheels
answered 5 months ago
Relevant content
- asked 2 years ago
- Accepted Answerasked 3 years ago
- asked 8 months ago
- asked 2 years ago
- AWS OFFICIALUpdated a month ago
- AWS OFFICIALUpdated 5 months ago
- AWS OFFICIALUpdated 3 years ago