Hi I’m struggling with importing Python packages. Two workarounds I’ve found are using layers, which requires Ubuntu, and a serverless package plugin which requires Docker. Is there any way I can do this using Windows and not using Docker? Is there a significant reason to use Docker in any case? Thanks in advance for any guidance
When I import database.database into ‘app.py’ it woks, however with I import database.database into ‘reserve.py’ I get a ‘ModuleNotFoundError: No module named database’
9Apps Tutuapp
Are you talking about Serverless Python Requirements - Serverless Framework: Plugins and why it requires Docker ?
I think the answer is because the .zip Serverless builds has to contain Linux versions of the Python dependencies, and on Windows, that’s how it gets them.