serverless-python-requirements icon indicating copy to clipboard operation
serverless-python-requirements copied to clipboard

Not remove package on removing requirement from requirements.txt

Open sprksh opened this issue 4 years ago • 2 comments

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.

sprksh avatar Jun 16 '20 16:06 sprksh

AFAIK if you change your requirements file everything should regenerate on every package step. You can try a few things:

  1. delete the .serverless directory (the one inside your serverless project your having problems with)
  2. 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

instil-richard avatar Jun 24 '20 00:06 instil-richard

Still an issue, or can this be closed?

f00f avatar Aug 03 '22 10:08 f00f