We recommend that you use Virtualenv to create an isolated container to install TensorFlow. This is optional, but doing so can make it easier to troubleshoot installation problems. First, install all the prerequisites:#on Linux:$ sudo apt-get install Python-pip python-dev python-virtualenv#on the MAC:$ sudo easy_install pip#If you have not yet installed Pip$ sudo pip install--upgrade virtualenv Next, build a new virtualenv environment. To build the environment in~/TensorFlow Directory, execute: $ virtualenv--system-site-packages ~/tensorflow$ CD~/TensorFlow Then, activate virtualenv:$ source bin/activate#If you use bash$ source Bin/activate.csh#If you use CSH(TensorFlow) $#The terminal prompt should change ifYou are installing TensorFlow forMac OS X, Python 2.7, the command to install TensorFlowinchThe active virtualenv isAs follows: $ pip Install--Upgrade https:storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.3.0-py2-none-ANY.WHL Then, start Python,ImportTensorFlow as TF error Importerror:no module named Google.protobuf, Workaround: sudo pip install protobufok!
Mac OS virtualenv-based installation TensorFlow