$ brew install pyenv
$ eval "$(pyenv init -)"
$ echo 'eval "$(pyenv init -)"' >> ~/.bash_profile
$ pyenv install --list
$ pyenv install 2.7.14
$ pyenv install 3.6.5
$ pyenv global 2.7.14
$ pip install --upgrade pip
$ pip install Django
$ python -m django --version
$ django-admin startproject mysite
$ cd mysite
$ ./manage.py migrate
$ ./manage.py runserver
Then visit http://localhost:8000.
$ ./manage.py startapp polls
$ brew cask install pycharm
Installing PyScaffold
# For Python 2
$ pip install --upgrade pyscaffold==2.5
# For Python 3
$ pip install --upgrade pyscaffold