Skip to content

Instantly share code, notes, and snippets.

@nsorros
Last active April 22, 2021 17:48
Show Gist options
  • Save nsorros/7d095e0fdcdeccbe31149300c9f1f991 to your computer and use it in GitHub Desktop.
Save nsorros/7d095e0fdcdeccbe31149300c9f1f991 to your computer and use it in GitHub Desktop.
Create virtualenv
PYTHON := python3.8
VENV := venv
PIP := venv/bin/pip
.PHONY: venv
venv: ## creates virtualenv
@if [ -d $(VENV) ]; then rm -rf $(VENV); fi
@mkdir -p $(VENV)
$(PYTHON) -m venv $(VENV)
$(PIP) install --upgrade pip
$(PIP) install -r requirements.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment