Question: How to Run Python on Windows 10?
Contents

How do I run Python on Windows?

Run your script

  • Open Command line: Start menu -> Run and type cmd.
  • Type: C:\python27\python.exe Z:\code\hw01\script.py.
  • Or if your system is configured correctly, you can drag and drop your script from Explorer onto the Command Line window and press enter.

How do I run Python on Windows 10 from command line?

How to run a python program in the Command prompt in windows 10

  1. Goto the Start Menu.
  2. Right Click “Computer”
  3. Select “Properties”
  4. A dialog should pop up with a link on the left called “Advanced system settings”.
  5. In the System Properties dialog, click the button called “Environment Variables”.
  6. In the Environment Variables dialog look for “Path” under the System Variables window.
Elena Rostova

Elena Rostova

Lead Health, Wellness & Medical Journalist

Elena Rostova holds a Master's degree in Public Health Journalism. She covers groundbreaking medical research, holistic wellness trends, mental health awareness, and nutritional science.

Share this article
Twitter Facebook Pinterest