Python # 5 - Python Installation and Environment set up - OnlineTutorialHub

Search This Blog

Theme images by Storman. Powered by Blogger.

About Fast Edition

Popular Posts

Pages

Services

Blog Archive

Tuesday, 7 November 2017

Python # 5 - Python Installation and Environment set up



Python Installation:-
1.To install Python, firstly download the Python circulation from Python official site

OnlineTutorialHub, OTH, Python, Python Installation

2. Having downloaded the Python circulation, execute it. Double click on the downloaded software. Follow the steps:
  • Start Installation:

  • OnlineTutorialHub, OTH, Python, Python Installation

  • Customize Installation and customize install location:

  • OnlineTutorialHub, OTH, Python, Python Installation

  • Wait, till the installation is finished.

  • OnlineTutorialHub, OTH, Python, Python Installation
Click the Close button and Python will be installed on your system.
Python - Environment Setup:-
  • Setup a development environment one of the most important things you will do when working with any programming language, which enables you to execute the code. Without setting up a development environment, you will never have the capacity to check your work.
  • With Python, you also need an interpreter that converts your code. Without interpreter, you'll have no real way to run your code.
  • The path is stored in an environment variable. This variable contains information available to the command shell and other programs.
  • In Unix, the path variable is named as PATH or Path in Windows (Unix is case sensitive; Windows is not case sensitive).
  • In Mac OS, the installer handles details of the path. To invoke the Python interpreter from any particular directory, you must add the Python directory to your path.
Setting path at Unix/Linux:-
To add the Python directory to the path for a particular session in Unix-
  • In the csh shell − type setenv PATH "$PATH:/usr/local/bin/python" and press Enter.
  • In the bash shell (Linux) − type export ATH="$PATH:/usr/local/bin/python" and press Enter.
  • In the sh or ksh shell −type PATH="$PATH:/usr/local/bin/python" and press Enter.
Note –The path of the Python directory is /usr/local/bin/python.
Setting path at Windows:-
To set path follow the steps:
  • Right click on My Computer -> properties.
  • Click on Advanced System settings.
  • Click on Environment Variable tab.
  • OnlineTutorialHub, OTH, Python, Python Environment Setup

  • Click on new tab of User Variables.
  • In Variable name write path.
  • OnlineTutorialHub, OTH, Python, Python Environment Setup

  • In Variable value copy path up to C://Python(i.e., path where Python is installed).
  • Click Ok ->Ok.


0 on: "Python # 5 - Python Installation and Environment set up"