From 89de9d77bb61cd521c9e5da4d4c69d50c0a223e6 Mon Sep 17 00:00:00 2001 From: Sklup55 <85282385+Sklup55@users.noreply.github.com> Date: Tue, 19 Dec 2023 17:48:06 +0530 Subject: [PATCH] setup.sh having commands for setting up Python 3.9 env - new addition setup.sh file having commands for setting up Python 3.9 env for running reviews.py having get-reviews & post-reviews endpoints --- functions/setup.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 functions/setup.sh diff --git a/functions/setup.sh b/functions/setup.sh new file mode 100644 index 0000000000..541a23741a --- /dev/null +++ b/functions/setup.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +# Install Python 3.9 +sudo apt-get update +sudo apt-get install -y python3.9 python3.9-distutils + +# Upgrade pip +/usr/bin/python3.9 -m pip install --upgrade pip + +# Install Cloudant +/usr/bin/python3.9 -m pip install Cloudant + +# Install Flask +/usr/bin/python3.9 -m pip install Flask