Python環境構成記録
1167 ワード
brew install pyenv
oh-my-zsh, .zshrc :
export PYENV_ROOT=/usr/local/opt/pyenv
if which pyenv > /dev/null; then eval "$(pyenv init -)"; fi
# shell
pyenv install --list
pyenv install 3.6.1
pyenv global 3.6.1 pyenv global system // python
brew install pyenv-virtualenv
pyenv virtualenv 3.6.1 env361
pyenv activate env361
pyenv deactivate
pyenv uninstall env361
pyenv install 2.7.13
brew install mysql
brew services start mysql // mysql
mysql_secure_installation // root
pip install mysqlclient
# pycharm interpreter :
Python 3.6.1 (/usr/local/opt/pyenv/versions/3.6.1/bin/python)