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.

screenfetch

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 https://repo.anaconda.com/archive/Anaconda3-XXXX.XX-Linux-x86_64.sh

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 Anaconda3-XXXX.XX-Linux-x86_64.sh

1.1

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

1.2

Keep pressing Enter key until you see the following

1.3

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.

1.4

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.

1.5

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.
>>>