Skip to content

Instantly share code, notes, and snippets.

@kylelix7
Last active November 10, 2019 00:15
Show Gist options
  • Save kylelix7/7d80977d6aad60b8774bb634525dc1e2 to your computer and use it in GitHub Desktop.
Save kylelix7/7d80977d6aad60b8774bb634525dc1e2 to your computer and use it in GitHub Desktop.
install
# Install the serverless cli
npm install -g serverless
# Or, update the serverless cli from a previous version
npm update -g serverless
sls plugin install -n serverless-python-requirements
sls plugin install -n serverless-wsgi
# create python virtual environment and install dependencies
pip3 install virtualenv
virtualenv venv
# active the virtualenv
source venv/bin/activate
# save the following in a requirements.txt file
boto3==1.9.228
botocore==1.12.228
chromedriver==2.24.1
Click==7.0
cycler==0.10.0
docutils==0.15.2
Flask==1.1.1
Flask-Cors==3.0.8
fsspec==0.4.4
itsdangerous==1.1.0
Jinja2==2.10.1
jmespath==0.9.4
joblib==0.13.2
kiwisolver==1.1.0
MarkupSafe==1.1.1
matplotlib==3.1.1
numpy==1.17.1
pandas==0.25.1
pyparsing==2.4.2
python-dateutil==2.8.0
pytz==2019.2
s3fs==0.3.4
s3transfer==0.2.1
scikit-learn==0.21.3
scipy==1.3.1
selenium==3.141.0
six==1.12.0
urllib3==1.25.3
Werkzeug==0.15.5
# Install all dependencies from the requirement.txt
pip install -r requirements.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment