Tutorial: Anaconda + Spyder + TensorFlow 2.0 @ Windows 10

Installation of TensorFlow 2.0 on Anaconda3 at Windows 10

Sik-Ho Tsang
2 min readMar 6, 2020
TensorFlow

Sometimes, you may just want to try out or test some simple things for TensorFlow. Google Colab can be used. However, the connection sometimes is not stable. Also, by 01/11/2019, Anaconda is supporting the TensorFlow 2.0. In this story, I will install Anaconda, Spyder and TensorFlow 2.0 in Windows 10. (Sik-Ho Tsang @ Medium)

Outline

  1. Anaconda Installation
  2. TensorFlow 2.0 Installation
  3. Spyder Installation
  4. Import TensorFlow

1. Anaconda Installation

Anaconda for Windows

2. TensorFlow Installation

2.1. Direct installation

conda install tensorflow or conda install tensorflow-gpu

2.2. Installation Using Virtual Environment

  • CPU: conda create -n <your_env_name> tensorflow
  • GPU: conda create -n <your_env_name> tensorflow-gpu
  • Since my PC only got CPU without GPU, and I chose to use virtual environment. I used 2.2 CPU one. This also help me to keep clean for the base. With the vitural environment named tf2:
  • conda create -n tf2 tensorflow

3. Spyder Installation

  • After that, open Anaconda Navigator.
  • Click Application on <your_enc_name> to change the environment from base to <your_enc_name>.
  • You can see there are several applications can be installed, such as Spyder, and Jupyter Notebook.
  • Click the setting icon and choose “Install application” to install Spyder.

4. Import TensorFlow

  • To see if it is installed, simply try the below Python code to see any errors:
import tensorflow as tf

--

--

Sik-Ho Tsang
Sik-Ho Tsang

Written by Sik-Ho Tsang

PhD, Researcher. I share what I learn. :) Linktree: https://linktr.ee/shtsang for Twitter, LinkedIn, etc.

Responses (2)