Share this article
Improve this guide
How to open PY files on a Windows 10/11 PC
Try 3 expert-tested solutions
3 min. read
Updated onOctober 4, 2023
updated onOctober 4, 2023
Share this article
Improve this guide
Read our disclosure page to find out how can you help Windows Report sustain the editorial teamRead more
Key notes
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.
What can I use to open PY files?
Programmers can edit Python scripts with numerous software. In fact, you can even edit a PY script in Notepad.
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.
We will show you in the guides below what and how to use to open PY files using different methods.
How can I open .py files on Windows 10?
1. Open Python Scripts withFile Viewer Plus
You can open PY and many other source code files with File Viewer 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.
On top of that, you’re about to download a reliableeditor and converter tool as well. Long story short, that’s also your chance to modify photos using the advanced image editor and convert your latest audio and video formats into different multimedia file types.
Is your budget limited? Then, the limited-time offer that includes a 30-day money-back guarantee will most likely sound like music to your ears.
File Viewer Plus
2. Open PY files with CPhyton Interpreter
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. Use the above steps to open PY scripts with that interpreter.
3. Open PY file in Notepad ++
You can easily open PY files in Notepad ++. It is a third-party text editor that supports the PY file format.You can add Notepad++ to most Windows platforms.
Note that this software has 32 and 64-bit versions. The 64-bit versions don’t work on 32-bit systems.
- Right clicktheStartbutton and selectSystemto open the window in the snapshot directly below. Check what System type you have.
2.Download Notepad +++. You need to choose the correct version for yourSystem(Notepad++ Installer 32-bit x86 (32-bit)orNotepad++ Installer 64-bit x64 (64-bit)).
-
After you download thesetup wizard with which you can install the software, double-click on it to start the installation.
-
When Notepad +++ finished installing, open the application.
-
Go toFile>Open.
-
Select the PY file that you want to open from your computer.
-
Notepad +++ will open the file.
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. Chances are to findPDF24as being simply perfect for what you need.
If you have any other suggestions or questions, don’t hesitate to leave them in the comments section below.
More about the topics:windows 10
Matthew Adams
Windows Hardware Expert
Matthew is a freelancer who has produced a variety of articles on various topics related to technology. His main focus is the Windows OS and all the things surrounding it.
He is passionate about the tech world, always staying up-to-date with the latest and greatest. With an analytical view, he likes problem-solving, focusing on errors and their causes.
In his free time, he likes to read and write about history and tries to always develop new skills.
User forum
0 messages
Sort by:LatestOldestMost Votes
Comment*
Name*
Email*
Commenting as.Not you?
Save information for future comments
Comment
Δ
Matthew Adams
Windows Hardware Expert
He is passionate about everything surrounding Microsoft’s OS, focusing on troubleshooting guides & tips for everyday problems.