Skip to content

Instantly share code, notes, and snippets.

@fijiaaron fijiaaron/
Last active Jan 19, 2019

What would you like to do?
Tensorflow setup


Python 3.6 is needed by Tensorflow


install homebrew on mac

/usr/bin/ruby -e "$(curl -fsSL"

install pyenv and pyenv-virtualenv

brew install pyenv
brew install pyenv-virtualenv

initialize pyenv

eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"

install python 3.6 with pyenv

pyenv install 3.6.5

create a virtualenv for using tensorflow

pyenv virtualenv 3.6.5 tf

use the virtualenv

pyenv activate tf

upgrade pip

pip install --upgrade pip

use pip to install tensorflow

pip install tensorflow

install jupyter for web interface

pip install jupyter

launch jupyter

jupyter notebook

use tensorflow in your app

import tensorflow as tf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.