brew install pyenv-virtualenv
~/.bash_profile
に以下を追記。
export PYENV_ROOT=${HOME}/.pyenv
if [ -d "${PYENV_ROOT}" ]; then
export PATH=${PYENV_ROOT}/bin:$PATH
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"
fi
pyenv global tf_3.5
pip install --upgrade pip
pip install tensorflow