From 63c6b446242c812673d881759c2616c7afbc2904 Mon Sep 17 00:00:00 2001 From: Pramod Goyal <81946962+goyalpramod@users.noreply.github.com> Date: Tue, 18 Jul 2023 11:05:09 +0530 Subject: [PATCH 1/2] Update setup.sh --- setup.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/setup.sh b/setup.sh index c950463..84595ad 100644 --- a/setup.sh +++ b/setup.sh @@ -1,5 +1,6 @@ sh ./src/server/migrations/import_metadata.sh +sudo apt-get update sudo pip install -r requirements.txt sudo apt-get install python3-dev libgraphviz-dev From 5f8080113fa33749eec665093d56bf7dfdebad77 Mon Sep 17 00:00:00 2001 From: Pramod Goyal <81946962+goyalpramod@users.noreply.github.com> Date: Sat, 22 Jul 2023 16:59:10 +0530 Subject: [PATCH 2/2] Update setup.sh --- setup.sh | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/setup.sh b/setup.sh index 84595ad..a7a26cb 100644 --- a/setup.sh +++ b/setup.sh @@ -1,7 +1,16 @@ sh ./src/server/migrations/import_metadata.sh sudo apt-get update -sudo pip install -r requirements.txt +sudo apt-get install python3-venv -sudo apt-get install python3-dev libgraphviz-dev -sudo pip install -r src/server/sql_graph/requirements.txt +# Create and activate a virtual environment (without sudo) +python3 -m venv venv +source venv/bin/activate + +# Install dependencies inside the virtual environment (without sudo) +pip3 install -r requirements.txt + +# Additional installations (without sudo) +sudo apt-get install python3-dev libgraphviz-dev +pip3 install -r src/server/sql_graph/requirements.txt +python3 src/server/app.py