How to setup Ubuntu for Machine Learning and Deep Learning

In this article we will learn how to prepare your ubuntu ready to start machine learning and deep learning. Before going into details let me first show you my system specs.


1. Installing Anaconda

Anaconda is a free and open-source distribution of the Python and R programming languages for scientific computing, that aims to simplify package management and deployment. It's comes with environment mangement tool known as conda which make very easy to install and manage packages.

We will use curl to download the Anaconda setup script.

$ curl -O

Replace XXXX.XX with version you want to download. Eg. 2018.12. You can also visit here and download manually.

Change the directory to when you have downloaded the script. Now let's install the script.

$ bash


Press Enter and you will see "Anaconda End User License Agreement"


Keep pressing Enter key until you see the following


As long as you agree, type yes. At this point, you’ll be prompted to choose the location of the installation. You can press ENTER to accept the default location, or specify a different location to modify it.


Now wait for some time to install and then you will get the following output. u Type yes so that you can use the conda command.


Then it will give you option to install MS VSCode. You can type no if you don't want to.

In order to activate the installation, you should source the ~/.bashrc file:

$ source ~/.bashrc

You can see if it works by typing this

$ python
Python 3.7.2 (default, Dec 29 2018, 06:19:36) 
[GCC 7.3.0] :: Anaconda custom (64-bit) on linux
Type "help", "copyright", "credits" or "license" for more information.