Using TensorFlow with Anaconda

During your work, you will encounter situations where you need multiple versions of TensorFlow on the same machine, such as TensorFlow 1.0 or TensorFlow 1.2. We may need to use TensorFlow with Python 2.7 or 3.0. With the previous installation, we have already successfully installed TensorFlow in the system Python. Now, we will show you how to use Anaconda to have multiple working environments on the same machine. With Anaconda, we can even use different versions of other popular libraries, such as OpenCV, NumPy, and scikit-learn.

First, we need to download and install miniconda from https://conda.io/miniconda.html. In our case, we select Python 2.7 64-bit bash installer, as we want to use Python 2.7 as the default ...

Get Machine Learning with TensorFlow 1.x now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.