python 2 install code example

Example 1: how to install python 2

$ sudo apt install python2
OR
$ sudo apt install python-minimal #is working

Example 2: pip install for python 2 and python3

$ curl -O https://bootstrap.pypa.io/get-pip.py
$ sudo python3.2 get-pip.py

Example 3: download python

Step 1: Download Python newest version from

 https://www.python.org/downloads/

Step 2:Install Python
Step 3:Download Pycharm Community free version
Step 4:Install and open Pycharm
Step 5:Write print("Hello New World")
  //Hurray you are about to start python

Example 4: latest version of python

# For macs... 
#  Apparently you don't want to upgrade 2.* just install 3.*

% brew install python3