Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Python # 5 - Python Installation and Environment set up



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


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


  • Customize Installation and customize install location:


  • Wait, till the installation is finished.

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.

  • Click on new tab of User Variables.
  • In Variable name write path.

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




This post first appeared on OnlineTutorialHub, please read the originial post: here

Share the post

Python # 5 - Python Installation and Environment set up

×

Subscribe to Onlinetutorialhub

Get updates delivered right to your inbox!

Thank you for your subscription

×