From 3a2739dcf153af16a1b37f496fbe6e99892237f2 Mon Sep 17 00:00:00 2001 From: = Date: Fri, 9 Aug 2024 15:40:04 +0700 Subject: [PATCH] Start to implementing venv --- install.sh | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/install.sh b/install.sh index 150b2d2..a8b19a5 100644 --- a/install.sh +++ b/install.sh @@ -1,6 +1,12 @@ -sudo apt-get install -y python3-pip -pip install --upgrade pip -pip install bottle # Micro Framework -pip install gunicorn # WSGI Server Backend -pip install beaker # Session & caching library -pip install mako # Template library +python3 -m venv .venv # Create .venv + +.venv/bin/pip3 install --upgrade pip # Upgrade pip + +.venv/bin/pip3 install bottle # Micro Framework +.venv/bin/pip3 install gunicorn # WSGI Server Backend +.venv/bin/pip3 install beaker # Session & caching library +.venv/bin/pip3 install mako # Template library + +.venv/bin/pip3 install mysql-connector # Database connector +.venv/bin/pip3 install bcrypt # Password hash +.venv/bin/pip3 install pyjwt[crypto] # JWT