Last active
August 22, 2018 23:57
-
-
Save phi-line/36cc277877ea1b6cc84798cb840aa86b to your computer and use it in GitHub Desktop.
Revisions
-
phi-line revised this gist
Aug 22, 2018 . 1 changed file with 5 additions and 2 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,15 +1,18 @@ # virtualenv --python=/usr/local/bin/python2.7 <path/to/new/virtualenv/ # virtualenv --python=/usr/local/bin/python3.7 <path/to/new/virtualenv/ set_python_version() { while true; do echo -n "Please choose Python2 or Python3 (2/3): " read python_version if [ "$python_version" = "2" ]; then echo "Activating: Python 2.7 >> ~/env/bin/activate" export PYTHONPATH=/Users/username/env/lib/python2.7/site-packages:/Users/username/git source ~/env/bin/activate break elif [ "$python_version" = "3" ]; then echo "Activating: Python 3.7 >> ~/env3/bin/activate" export PYTHONPATH=/Users/username/env3/lib/python3.7/site-packages:/Users/username/git source ~/env3/bin/activate break fi -
phi-line created this gist
Aug 22, 2018 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,18 @@ set_python_version() { while true; do echo -n "Please choose Python2 or Python3 (2/3): " read python_version if [ "$python_version" = "2" ]; then echo "Activating: Python 2.7 >> ~/env/bin/activate" export PYTHONPATH=/Users/kishan/env/lib/python2.7/site-packages:/Users/kishan/Better source ~/env/bin/activate break elif [ "$python_version" = "3" ]; then echo "Activating: Python 3.7 >> ~/env3/bin/activate" export PYTHONPATH=/Users/kishan/env3/lib/python3.7/site-packages:/Users/kishan/Better source ~/env3/bin/activate break fi done } set_python_version