whathetech Python Anaconda Python Installation

Anaconda Python Installation

Step by Step instructions on how to install Anaconda and Jupyter notebook
Though there are many packages available, I recommend Anaconda as it one of the best Data Science platforms.
It has 400+ popular python packages, it is enterprise ready. It supports multi-workload data analytics which means it can run multiple analytics job in parallel.
It supports Big Data environments like Hadoop, Spark.
It provides interactive visualizations.
There are currently two versions of Python – 2.7 and 3.5
We will be using python3

from the command line, type:

sudo apt-get install python3 python3-pip

There are many reason why we can use Jupyter Notebook:
1. It supports Python language
2. It allows content sharing
3. Has several interactive widgets which makes data visualization interactive
4. Seamlessly integrates with Big Data Platform

Let us now install anaconda.
go to https://conda.io/docs/user-guide/install/index.html and look for the OS
I am going to be installing on Linux (https://conda.io/docs/user-guide/install/linux.html)
Click on Anaconda installer for Linux and wait for the download to complete

Once its downloaded, enter the below command

home@home-home-1:~/projects/downloads$ bash Anaconda3-5.0.1-Linux-x86_64.sh 
Welcome to Anaconda3 5.0.1
In order to continue the installation process, please review the license
agreement.
Please, press ENTER to continue
>>> 
Do you accept the license terms? [yes|no]
[no] >>> yes
Anaconda3 will now be installed into this location:
/home/anaconda3
  - Press ENTER to confirm the location
  - Press CTRL-C to abort the installation
  - Or specify a different location below
[/home/anaconda3] >>> 
[/home/anaconda3] >>> 
PREFIX=/home/anaconda3
installing: python-3.6.3-hc9025b9_1 ...
....
installation finished.
Do you wish the installer to prepend the Anaconda3 install location
to PATH in your /home/.bashrc ? [yes|no]
[no] >>> yes
Appending source /home/anaconda3/bin/activate to /home/.bashrc
A backup will be made to: /home/.bashrc-anaconda3.bak
For this change to become active, you have to open a new terminal.
Thank you for installing Anaconda3!

Let us now install Jupyter Notebook, all we need to do is

conda install jupyter
Fetching package metadata ...........
Solving package specifications: 
Package plan for installation in environment /home/anaconda3:
The following packages will be UPDATED:
    anaconda: 5.0.1-py36hd30a520_1  --> custom-py36hbbc8b67_0
    conda:    4.3.30-py36h5d9f9f4_0 --> 4.4.9-py36_0         
    jupyter:  1.0.0-py36h9896ce5_0  --> 1.0.0-py36_4         
    pycosat:  0.6.2-py36h1a0ea17_1  --> 0.6.3-py36h0a5515d_0 
Proceed ([y]/n)? y
anaconda-custo 100% |###############################################################################################| Time: 0:00:00   2.94 MB/s
pycosat-0.6.3- 100% |###############################################################################################| Time: 0:00:00 407.72 kB/s
conda-4.4.9-py 100% |###############################################################################################| Time: 0:00:01 894.18 kB/s
jupyter-1.0.0- 100% |###############################################################################################| Time: 0:00:00   2.27 MB/s
home@home-home-1:~/anaconda3/bin$ 
home@home-home-1:~/anaconda3/bin$ jupyter notebook

The last command will open the notebook in a web browser and you can start editing your code.

Tags: , , , ,