Skip to content

Instantly share code, notes, and snippets.

View darosior's full-sized avatar

Antoine Poinsot darosior

View GitHub Profile
@darosior
darosior / createvenv.sh
Created October 22, 2018 13:09
Create a Python virtual environment even without permission
#!/bin/bash
python3 -m venv --without pip "$1"
source "$1/bin/activate"
curl https://bootstrap.pypa.io/get-pip.py | python3
deactivate
source "$1/bin/activate"
rm -rf pip