python environment creation
#Install virtualenv and virtualenvwrapper.
sudo easy_install -UZ pip
sudo pip install virtualenv
sudo pip install virtualenvwrapper
cat << EOF >> .oh-my-zsh/custom/zshrc.mine.zsh
export WORKON_HOME=\$HOME/.virtualenvs
source /usr/local/bin/virtualenvwrapper.sh
EOF
source .zshrc
mkvirtualenv -p /usr/bin/python2.7 python2.7
deactivate
When using
workon python2.7
Recommended Posts