The Python file right button cannot find the idle open solution

Source: Internet
Author: User

This article mainly introduces the Python file right key can not find idle open the solution, this article uses the registry to solve this problem, the need for friends to refer to the next

Often, double-clicking a. py file cannot run, or right-click on an item that is not idle edited, is more common in the WIN7 system.

Double-click *.py file cannot run solution:

Right-click-> Open mode-> Select default program-> Browse, find and select Python.exe

Right-click No idle solution:

1. If the Python environment is built soon, Pythonpath, and the Lib/site-packages directory also does not have the number of library files, you can reload

2. Modify the registry,

I. Modify the registry with the regedit command

The code is as follows:

[Hkey_classes_rootpython.fileshelleditwithidle]

[Hkey_classes_rootpython.fileshelleditwithidlecommand]

Ii. modifying the registry by means of a batch file

The code is as follows:

Windows Registry Editor Version 5.00

[Hkey_classes_rootpython.fileshelleditwithidle]

@= "&edit with IDLE"

[Hkey_classes_rootpython.fileshelleditwithidlecommand]

@= "" "C:python27pythonw.exe" "C:python27libidlelibidle.pyw"-E "%1" ""

Save the above file to Python.reg, double-click, you will also modify the registry, restart the effective

Note: Instead of your own Python installation directory, it's OK.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.