Setting path for Python
Windows allows environment variables to be configured permanently at both the User level and the System level, or temporarily in a command prompt. In order to run Python conveniently from a command prompt , you might consider changing some default environment variables in Windows.
To temporarily set environment variables, open Command Prompt and use the set command:
To permanently modify the default environment variables:
My Computer > Properties > Advanced System Settings > Environment Variables > Edit
- Right-click 'My Computer'.
- Select 'Properties' at the bottom of the Context Menu.
- Select 'Advanced system settings'
- Click 'Environment Variables...' in the Advanced Tab
- Under 'System Variables': Click Edit
Add python's path to the end of the list (the paths are separated by semicolons(;))
Using Python from a command window
Open a command prompt window (press Windows+R, type in cmd, and hit enter).
Just type "python" on the command line and see if you get an error or not. If you see a response from a Python interpreter it will include a version number in its initial display.
Success, now you can start programming on Python .