Closed wobeng closed 7 years ago
Hello! It seems like you have a lot of packages that pip is refusing to install because they are installed globally in your Python (see the part about Requirement already satisfied
). You probably want to ship your entire set of installed Python libraries as a Lambda function, so I'd recommend uninstalling them globally so pip can install them locally for the project and virtualenv can capture them.
Hi martin,
Thanks for responding. env2 is a virtualenv not global
Hi @wobeng -- /home/testuser/py/ca-lambda/test/.lambda_uploader_temp/venv
is a brand new virtualenv, so it shouldn't be able to see env2
unless you're actively loading it in all new shells/somehow making it globally activated. Is it possible you've got it loading automatically?
Lambda-uploader doesn't do anything beyond running virtualenv to create a separate environment, so for some reason, additional virtual environments aren't letting you install your dependencies. You could troubleshoot this yourself by attempting the same...
I had to rebuilt my linux environment, worked after that
When I specify pip libraries in the config or requirements.txt It looks like it installs it but does not copy to the zip file
Is there something I'm doing wrong? I have attached the zip, where there is no lib files
lambda_function.zip