Skip to content

Instantly share code, notes, and snippets.

View chatintern's full-sized avatar
💪

INTERN chatintern

💪
View GitHub Profile
@skatsuta
skatsuta / install_python_36_amazon_linux2.sh
Last active November 4, 2022 09:01 — forked from PabTorre/install_python_36_amazon_linux2.sh
Install Python 3.6 in Amazon Linux 2
#!/usr/bin/env bash
# A virtualenv running Python3.6 on Amazon Linux/EC2 (approximately) simulates the Python 3.6 Docker container used by Lambda
# and can be used for developing/testing Python 3.6 Lambda functions
# This script installs Python 3.6 on an EC2 instance running Amazon Linux and creates a virtualenv running this version of Python
# This is required because Amazon Linux does not come with Python 3.6 pre-installed
# and several packages available in Amazon Linux are not available in the Lambda Python 3.6 runtime
# The script has been tested successfully on a EC2 instance
# running 4.9.75-1.56.amzn2.x86_64