Created
October 22, 2018 13:09
-
-
Save darosior/7c7727a958d3515fab3b68db71cdf6d3 to your computer and use it in GitHub Desktop.
Create a Python virtual environment even without permission
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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