How to open PY files on PC

By: Matthew Adams
3 minute read
open PY files on PC

For various PC problems, we recommend to use this tool.

This tool will repair common computer errors, protect you from file loss, malware, hardware failure and optimize your PC for maximum performance. Quickly fix PC issues and prevent others from happening with this software:

  1. Download this PC Repair Tool with Patended Technologies
  2. Click “Start Scan” to find Windows issues that could be causing PC problems.
  3. Click “Repair All” to fix all issues (requires upgrade).

Python is an interpreted programming language that some programmers develop software with. PY is the file format for Python scripts. PY scripts can also have alternative file extensions, which include PYC, PYD and PWC. The scripts are text files, but you’ll need a Python interpreter to run a PY script in Windows.

Open PY files on Windows PCs

Opening Python Scripts

Programmers can edit Python scripts with numerous software. In fact, you can edit a PY script in Notepad. However, Notepad++ is a better third-party text editor that also supports the PY file format. That includes syntax highlighting and folding, macro-recording options, document tabs, a customizable GUI and you can also expand the software with scripting plug-ins.

You can add Notepad++ to most Windows platforms from this website page. Note that this software has 32 and 64-bit versions. The 64-bit versions don’t work on 32-bit systems. You can check that specification by right-clicking the Win 10 Start button and selecting System to open the window in the snapshot directly below.

Click either Notepad++ Installer 32-bit x86 (32-bit) or Notepad++ Installer 64-bit x64 (64-bit). That will download either the 32 or 64-bit setup wizard with which you can install the software. Then you can open a script in Notepad++ by clicking File > Open.

There are also various Python editors that you can open scripts with. Those are otherwise IDE editors designed for Python scripting. PyScripter, PyDev and PyCharm are three open-source IDE software you can open your PY files with. IDEs are probably better software for Python coding than Notepad++ as they also include debug tools and integrated interpreters.

Download this tool we highly recommend

You can open PY and many other source code files with FilleViewer Plus. This is a universal file viewer for Windows that can open and display over 300 different file types, view and edit source code files. You can download free a fully-functional trial from the official website or buy it at an affordable price.

Running Python Scripts

Text editors are fine for editing files, but you’ll need a Python interpreter to open and run the PY scripts. Some interpreters come bundled with IDE Python software. However, CPython, otherwise the reference implementation, is the default interpreter for the programming language. This is how you can open PY scripts with that interpreter.

  • Open this page to download a CPython interpreter. Press the Download Python 3.6.2 button to save one of the more update interpreters to Windows.
  • 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.
  • Next, enter the full path of the CPython interpreter followed by the full location of the PY file in the Command Prompt, which must include the Python interpreter exe and PY file title. For example, you might enter something like this:
  • Include a space between the interpreter and file paths. Press Enter to open and run the PY script.

So, you can edit and run PY files with text editors, IDE software and Python interpreters. You can also convert PY script files to Portable Document Format with the freeware PDF24 Creator software. Check out this page for further PDF24 details.

RELATED STORIES YOU NEED TO CHECK OUT:

Next up

These features are out for good with Windows 10 version 1809

iamsovy@gmail.com' By: Sovan Mandal
2 minute read

Microsoft is all set to launch its next big update, Windows 10 version 1809 in October. While that should be a nice piece of news […]

Continue Reading

Windows 10 18H2 builds no longer receive new features

By: Matthew Adams
3 minute read

The Windows 10 October 2018 Update (otherwise 18H2) rollout might now be two to three weeks away. For the last few months, new build previews […]

Continue Reading

Windows 7 KB4457139 makes it easier to upgrade to Windows 10

By: Madeleine Dean
2 minute read

Microsoft released a new Windows 7 update to the general public. Update KB4457139 is actually a preview of the upcoming monthly rollup update and allows users […]

Continue Reading

Discussions