article
Wednesday, March 4, 2020
How to Import Custom Python Packages on AWS Lambda Function
How to Import Custom Python Packages on AWS Lambda Function
In this tutorial I will show how to install the pymysql import pymysql on AWS Lambda Function
1. Open powershell
2. Make a directory = mkdir pythonimport
3. Change directory = chdir pythonimport
4. Make and activate a virtual environment
5. Type this command to activate virtual environment : virtualenv.exe venv
6. Change to the "venv" directory. Type this command: cd venv
7. Activate the virtual environment. Type this command: .\Scripts\activate
8. install package pip install pymysql