Permalink
Switch branches/tags
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
67 lines (39 sloc) 1.88 KB

Deep Learning class - installation instructions

Download the Anaconda distribution for your Operating System (Windows, macOS or Linux):

Follow the instructions of the Anaconda page to install anaconda on your laptop.

Open a console / terminal and update the following packages with conda:

conda install python=3.6 numpy scikit-learn jupyter matplotlib pip
conda install pandas h5py pillow scikit-image lxml

Install the tensorflow and keras (without GPU support) library:

python3 -m pip install -U tensorflow keras

Check that you can import tensorflow with the python from anaconda:

python3 -c "import tensorflow as tf; print(tf.__version__)"
1.4.1

We tested the notebooks with keras 2.2 and tensoflow 1.8.

Ideally: create a new jupyter notebook and check that you can import the numpy, matplotlib, keras and tensorflow modules.

To take pictures with the webcam we will also need opencv-python:

python3 -m pip install opencv-python

If your laptop does not have a webcam or if opencv does not work, don't worry this is not mandatory.

Troubleshooting

In a console check the installation location of the conda command in your PATH:

conda info

Read the output of that command to verify that your conda command is associated with Python 3.6.

Check that the pip command in your PATH is the one installed by conda:

pip show pip

and check that it matches:

python3 -m pip show pip

In particular, look at the "Location:" line of pip is a subfolder of the "environment root:" line from "conda info".

If you cannot solve your installations without the help of fellow students, please feel free to send an email to the instructors with the outputs of the previous command and include the full error messages along with the name and version of your operating system.