Can I update or remove the pip and setuptools provided with AWS Elastic Beanstalk?
The versions of pip and setuptools provided with my AWS Elastic Beanstalk Python envir
Try adding an ebextension file that will upgrade pip before running
pip install -r requirements.txt
for example:
004_prehook.config
files:
"/opt/elasticbeanstalk/hooks/appdeploy/pre/02a_upgrade_pip.sh":
mode: "000755"
owner: root
group: root
content: |
#!/usr/bin/env bash
source /opt/python/run/venv/bin/activate
python3 -m pip install --upgrade pip