SETTING PATH IN PYTHON
Before starting working with Python, a specific path is to set.- Your Python program and executable code can reside in any directory of your system, therefore Operating System provides a specific search path that index the directories Operating System should search for executable code.
- The Path is set in the Environment Variable of My Computer properties:
- To set path follow the steps:
In Variable name write path and in Variable value copy path up to C://Python(i.e., path where Python is installed). Click Ok ->Ok.
Path will be set for executing Python programs.
- Right click on My Computer and click on properties.
-
Click on Advanced System settings
- Click on Environment Variable tab.
-
Click on new tab of user variables.
-
Write path in variable name.
-
Copy the path of Python folder.
-
Paste path of Python in variable value..
-
Click on Ok button:.
-
Click on Ok button:.