if test -f .venv/bin/python && test "$(realpath .venv/bin/python)" != "$(realpath "$(pyenv which python)")" then echo "rebuilding venv für new python version" rm -rf .venv fi python3 -m venv .venv source .venv/bin/activate PATH_add .venv/bin PATH_add bin python3 -m pip --require-virtualenv --quiet install --upgrade pip wheel python3 -m pip --require-virtualenv --quiet install --upgrade -r requirements.txt