Quick Answer: How to Open Python on Windows?
Contents

To get to the command line, open the Windows menu and type “command” in the search bar.

Select Command Prompt from the search results.

In the Command Prompt window, type the following and press Enter.

If Python is installed and in your path, then this command will run python.exe and show you the version number.

How do I open a .PY file in Windows?

Running Python Scripts

  • Open this page to download a CPython interpreter.
  • Open the Win + X menu by pressing the Win key + X hotkey.
  • Select Command Prompt (Admin) to open the CP’s window.
  • Open the folder that includes your Python script in the Command Prompt by entering ‘Cd’ followed by the path of the file.

How do I run a Python program in Windows?

Follow the following steps to run Python on your computer.

  1. Download Thonny IDE.
  2. Run the installer to install Thonny on your computer.
  3. Go to File > New. Then save the file with .py extension.
  4. Write Python code in the file and save it.
  5. Then Go to Run > Run current script or simply click F5 to run it.
Sarah Jenkins

Sarah Jenkins

Senior Technology Editor & AI Specialist

Sarah Jenkins is a veteran tech journalist with over 12 years of experience covering artificial intelligence, mobile innovations, and digital ethics. Her insights have appeared in leading technology publications worldwide.

Share this article
Twitter Facebook Pinterest