How to set the PATH for Python:
PATH:
- Path is a environment variable which is related to OS.
By default Python software contains the Python interpreter.
By default we can access the Python interpreter within the installation folder of the Python software only.
Why we need Set the PATH ?
- In-order to access the Python interpreter from any directory of the OS we need to set the path.
D:\> python
'python' is not recognized as an internal or external command,
operable program or batch file.
Set the PATH for Python:
Step 1:
- click on start button and click-on computer button.
- Double-click-on C-drive
- Double click-on program files
- Double click on Python35 folder
- Copy that Location
Step 2:
- click on start button and click-on computer button.
- Right click on Computer
- click on Properties
- Click-on Advanced System Settings
- Click-on Environment variables
- Go to System Variables
Click on Edit
Add the following
Path at the end of the variable value.
previous selected path: C:\Program Files\Python35 and end with ;
Then click on OK button
Then click on OK button
Then click on OK button
Now we are going to command prompt and check, we are correctly set the python path or not
Congratulations we are set the python path successfully
No comments:
Post a Comment