Skip to content

Instantly share code, notes, and snippets.

@darosior
Created October 22, 2018 13:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save darosior/7c7727a958d3515fab3b68db71cdf6d3 to your computer and use it in GitHub Desktop.
Save darosior/7c7727a958d3515fab3b68db71cdf6d3 to your computer and use it in GitHub Desktop.
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment