Right-click the Python file and find the IDLE option. solution:

Source: Internet
Author: User
This article mainly introduces how to right-click the Python file and find the IDLE option. This article uses the registry to solve this problem. if you need it, you can refer to it and double-click it. the py file cannot run, or the right-click file does not have an IDLE edit item, which is common in Windows 7.
Double-click the *. py file to run it. solution:
Right click-> open mode-> select default program-> view, find and select python.exe

Right-click there is no IDLE item solution:
1. if the PYTHON environment is not built soon, and there are not many library files in the PYTHONPATH and Lib/site-packages directories, you can reinstall
2. modify the registry,
I. use the regedit command to modify the registry

The code is as follows:


[HKEY_CLASSES_ROOT \ Python. File \ shell \ EditwithIDLE]
[HKEY_CLASSES_ROOT \ Python. File \ shell \ EditwithIDLE \ command]



Ii. modify the registry using a batch file

The code is as follows:


Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT \ Python. File \ shell \ EditwithIDLE]
@ = "& Edit with IDLE"

[HKEY_CLASSES_ROOT \ Python. File \ shell \ EditwithIDLE \ command]
@ = "\" C :\\ Python27 \ pythonw.exe \ "\" C :\\ Python27 \ Lib \ idlelib \ idle. pyw \ "-e \" % 1 \""


Save the preceding file to python. reg. double-click the File to modify the registry and restart the file.
NOTE: replace it with your own PYTHON installation directory.

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.