1 – Python-Getting Started

Python is a high level programming language. Python is also case sensitive programming language. Python Language was created by Guido van Rossum in 1990’s. It enables programming on both small and large scales. Python is a dynamic type system and features a automatic memory management. So python is used in companies like Google, Yahoo, IBM, etc.

ADVANTAGES OF PYTHON:

  • Extensively supported modules.
  • Access to Third Party Modules
  • Easy creation of GUI [Graphical User Inteface]
  • More no of tutorials and documentation availability
  • Open Source and User-friendly
  • Readability
  • Automation, Machine learning, Deep learning and many such trending toolboxes are available in python
  • Mini Computers such as Raspberry Pi and BeagleBone rely on python as the main programming language.
  • Supported by all kind of systems and platforms.
  • Integrates easily with other languages.
  • Simple and easy
  • Portable
  • It is an Interpreted language

DISADVANTAGES OF PYTHON

  • Speed limitations
  • Underdeveloped when compared with JDBC (Java DataBase Connectivity).
  • Weakness in Mobile Computing.
  • Leads to run-time errors.

The two popular and latest versions of python used worldwide are

  1. Python 2.7
  2. Python 3.6
  • To know the differences between Python 2 and 3 click here.

I have explained both python 2.7 and python 3.7 installations.

1. PYTHON 2.7 INSTALLATION IN WINDOWS:

  • Go the official python website https://www.python.org/downloads/ to download the python software.
  • If you have installed python 2.7 your installation folder will be C:\Python27.
  • Python can be accessed by using IDLE.

ADD PYTHON AS ENVIRONMENT VARIABLE

  • Search for Edit the System Environment Variable and open it
  • Click on Environment variables in Advanced Tabp3
  • Double click on Path in System variables to add a new variablep4
  • Then click on new and add the directory of installation of python [C:/Python27 for python 2.7] and click ok p5
  • To check whether the python is accessible in every location open Command Prompt and type python. You will get response as shown belowp6.PNG

PIP INSTALLATION:

  • PIP is an easiest and recommended tool for installing modules for python.
  • Download the get-pip.py python file.
  • Open the file with idle by right clicking on it and selecting Edit with IDLEScreenshot (18).png
  • Run the file by Run–>Run Module
  • PIP will be installed in the location C:/Python27/Scripts considering that python 2.7 is installed
  • PIP should be added to Environment variable as we added python.py7
  • To check whether pip is installed open command promt and type pipp8.PNG
  • To install a module refer the google where we get the pip command for that module. For example, to install serial type pip install pyserial and the module will be installedp9

p10.PNG

2. PYTHON 3.7 INSTALLATION IN WINDOWS:

  • Run the executable file. An installer opens as shown below. Check the Add python 3.7 to path checkbox.

  • Click on the customize installation button to setup custom installation folder.

  • Specify the location where the python is to be installed.
  • Open the Command prompt and move the location where python is installed.
  • Use the python and pip to check the installation.

OTHER METHODS TO INSTALL PYTHON

  1. Install anaconda software which contains all modules and contains web interactive tools. It can be installed from here. Anaconda is best suites image processing and machine learning.
  2. PyCharm can be used instead of using IDLE since it will be helpful to maintain big projects.

INSTALLATION IN LINUX

  • Considering the importance of Python it is installed in default in Linux.
  • Idle can be installed by
sudo apt-get install idle

Click here for python tutorials

SHARE THIS!!!

Gowtham S

Gowtham is a programming enthusiast. His field of interest includes Arduino, NodeMCU, Raspberry Pi, and Python. To know more about him visit https://mybtechprojects.tech/about-us/.

15 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.