Since Tensorflow is not yet available via pip for Python 3.7 and pyenv can't build python on the latest macOS, let's install 3.6.5_1
via homebrew and use it in conjunction with pyenv to create an enclosed environment that will use 3.6 only when we need it:
brew unlink python
brew install --ignore-dependencies https://raw.githubusercontent.com/Homebrew/homebrew-core/f2a764ef944b1080be64bd88dca9a1d80130c558/Formula/python.rb
brew switch python 3.7.2_1
Install pyenv if you haven't already, we'll use it to switch to 3.6.5
only when we need it (e.g. jupyter), leaving the latest Python from homebrew as default release (e.g. 3.7.2_1
):
brew install pyenv
pyenv rehash