From d3344b8799c8c06a248fd4ef81c374ced46e80b4 Mon Sep 17 00:00:00 2001 From: Slawek Koszewski Date: Tue, 4 Nov 2025 09:14:10 +0100 Subject: [PATCH] Add script to create Python virtual environment --- make-venv.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 make-venv.sh diff --git a/make-venv.sh b/make-venv.sh new file mode 100755 index 0000000..8e80f10 --- /dev/null +++ b/make-venv.sh @@ -0,0 +1,8 @@ +#! /usr/bin/env bash + +python3 -m venv .venv +./.venv/bin/pip install --upgrade pip +./.venv/bin/pip install -r requirements.txt + +echo "Add the following alias to your shell configuration file (e.g., .bashrc or .zshrc):" +echo "alias v_env='test -d $(pwd)/.venv && . $(pwd)/.venv/bin/activate'"