Created
January 31, 2018 12:38
-
-
Save glefait/657f347071e7741af8f53510b4c461b3 to your computer and use it in GitHub Desktop.
delete and recreate virtualenv then install current python package
This file contains 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
alias delgenvenv="current_env=`pwd | sed -nr 's#^.*?/([^/]+)$#\1#p'` \ | |
&& echo \"destroy virtualenv $current_env\" \ | |
&& (deactivate || echo 'skip deactivate') \ | |
&& (rm -Rf ~/.virtualenvs/$current_env/ || echo 'skip rm') \ | |
&& virtualenv ~/.virtualenvs/$current_env \ | |
&& source ~/.virtualenvs/$current_env/bin/activate \ | |
&& pip install -r requirements.txt" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment