serverless-python-requirements
serverless-python-requirements copied to clipboard
Not remove package on removing requirement from requirements.txt
So I added gevent as requirement and then removed it from requirements.txt but the package is not getting removed. The size of that package is too much which has increased size of my zipped lambda function from some 2 MB to 50 MB.
How can I remove the installed dependencies. I also tried uninstalling the package from virtualenv.
AFAIK if you change your requirements file everything should regenerate on every package step. You can try a few things:
- delete the .serverless directory (the one inside your serverless project your having problems with)
- delete the "static cache" that the plugin uses across all projects; for a Mac user this is located at $HOME/Library/Caches/serverless-python-requirements
Still an issue, or can this be closed?