Python Installation:-
1.To install Python, firstly download the Python circulation from Python official site2. 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.
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.
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.
0 on: "Python # 5 - Python Installation and Environment set up"