From 79ba7eb4a1e01f812aa4d18f63990b490b26fc91 Mon Sep 17 00:00:00 2001 From: Bui Date: Mon, 21 Mar 2022 04:54:17 +0000 Subject: [PATCH] venv fix for debian? --- tools/setup.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/setup.sh b/tools/setup.sh index ae88dc8..022de21 100644 --- a/tools/setup.sh +++ b/tools/setup.sh @@ -2,7 +2,7 @@ set -euo pipefail sudo apt update -sudo apt install -y git python3-pip python3-virtualenv nginx ffmpeg redis supervisor +sudo apt install -y git python3-pip python3-virtualenv python3-venv nginx ffmpeg redis supervisor if [[ -r /etc/os-release ]]; then . /etc/os-release @@ -45,7 +45,8 @@ sudo sed -i 's/^\(\s\{0,\}\)\(include \/etc\/nginx\/sites-enabled\/\*;\)$/\1#\2/ sudo sed -i 's/}/ application\/wasm wasm;\n}/g' /etc/nginx/mime.types sudo nginx -s reload -virtualenv -p python3 .venv +python3 -m venv .venv +.venv/bin/pip install --upgrade pip wheel setuptools .venv/bin/pip install -r requirements.txt sudo mkdir -p /var/log/taiko-web