I got the same problem on AWS too. It depends how you deploy your app to AWS. If you are using terraform or serverless even AWS Toolkit in PyCharm, you can add requirements.txt in same folder where your script is and deployer will handle the rest.
1 Like