How To Uninstall Pip Packages On Elastic Beanstalk
How to uninstall pip packages on Elastic Beanstalk? We removed a package in our requirements.txt file, but we think the package is still there because its causing a namespace colli
Solution 1:
So far, I think the best option is to ssh into the instance and do something like:
source /opt/python/run/venv/bin/activate && yes | pip uninstall package-to-uninstall
You can alternatively add the following as a container_command in your syspackages.config file in .ebextensions :
command: "source /opt/python/run/venv/bin/activate && yes | pip uninstall package-to-uninstall"
Please, let me know if you figured out a more elegant way to fix this.
Post a Comment for "How To Uninstall Pip Packages On Elastic Beanstalk"