Skip to content

Instantly share code, notes, and snippets.

View Hosuke's full-sized avatar
🐢
I code slowly

Huang Geyang Hosuke

🐢
I code slowly
View GitHub Profile
@wxiaoguang
wxiaoguang / venv.sh
Last active July 16, 2019 09:54
python3 virtualenv/venv helper bash script (env init, env bootstrap, pip requirement installation, program exec)
#!/bin/bash
SYSTEM_PYTHON="python3.6"
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
export VIRTUAL_ENV="$DIR/.venv"
PIP="$VIRTUAL_ENV/bin/pip"
PYTHON="$VIRTUAL_ENV/bin/python"