In this tutorial, I will go through step by step instructions to setup deep learning development environment for Ubuntu. We will install the following python packages on fresh Ubuntu 16.04:
Let's dig it! First, I would install virtualenv, in case you need multiple python environments.
$ sudo apt-get install virtualenv -y
To create an environment, simply run
$ virtualenv ENV
where replace ENV with the deep learning environment name you would like.
To activate the new environment,
$ source ~/ENV/bin/activate
where again replace ENV with the name chosen above.
Next, we need to install pip, which helps us install these python packages with ease.
$ sudo apt-get install python-pip -y
You may want to upgrade pip to the latest version:
$ pip install --upgrade pip
Next, let's install python packages within the environment.
$ pip install tensorflow keras numpy scipy matplotlib sklearn
For OpenCV and TK, we need to install it from apt-get:
$ sudo apt-get install libopencv-dev python-opencv python-tk -y
That's it! Now you are ready to develop your neural network with tensorflow backend keras! If you want to test out if your environment is successfully setup, check out this post.