Following up the deep learning workshop presented in SIS (slides), this note introduces how to setup TensorFlow and Keras in your own computer without affecting your existing installations of Python.
- Follow the instructions on the Anaconda download site to download and install Anaconda.
Create a sperated python environment by issuing the following command:1conda create -n tensorflow python=3.5
To activate this environment:1activate tensorflow
You need to activate this environment everytime you want to play with TensorFlow+Keras
Install TensorFlow by invoking:1pip install tensorflow
Install Keras by invoking:1pip install keras
If you encounter scipy installation erros here (look for red words), you can invoke the following command and install keras again.1conda install -c anaconda scipy
Now you can call your python script:1python xxx.py
Or you can play with a python notebook:1jupyter notebook