“Edit with IDLE” option missing from context menu

前端 未结 11 1857
盖世英雄少女心
盖世英雄少女心 2020-12-09 10:46

I have Python 2.7.5 that installed with ArcGIS 10.2.2. When I first right-clicked a .py script I\'d previously written it listed the \"Edit with IDLE\" option in the contex

相关标签:
11条回答
  • 2020-12-09 11:08

    This issue is arising because of the problem in the registry of Python installation. While one may edit the registry and resolve the issue, the simple solution for this can be:

    1. DELETE ALL THE REGISTRIES pertaining to the py extensions and

    2. Re-install Python and let installation take its course of action.

    The problem will definitely resolve.

    Happy Programming

    0 讨论(0)
  • 2020-12-09 11:09

    Another option would be to just open the file with the idle by choosing open with:

    C:\Python27\ArcGIS10.3\Lib\idlelib\idle.bat 
    

    as the default program.

    0 讨论(0)
  • 2020-12-09 11:10

    After uninstalling both 2.7 and 3.6, reinstalling 3.6, I ran the init.py ,main.py, and idle.pyw found in C:\Program Files\python\Lib\idlelib and the edit with menu reappeared

    0 讨论(0)
  • 2020-12-09 11:13

    As click to save button to save your python code there will be Two Extensions...1) .py and 2) .pyw.

    So for Python 2 you have to save python program using extension .pyw.

    0 讨论(0)
  • 2020-12-09 11:14

    Directly from: https://superuser.com/questions/343519/python-idle-disappeared-from-the-right-click-context-menu

    Here's a reg file to add the command to edit with IDLE for Python.File (.py) and Python.NoConFile (.pyw) file types. It's for Python 2.7, installed in C:\Python27, so substitute the paths to pythonw.exe and idle.pyw that are relevant to your installation. Save it to a .reg file. Then right-click and choose Merge.

    Windows Registry Editor Version 5.00
    
    [HKEY_CLASSES_ROOT\Python.File\shell\Edit with IDLE\command]
    @="\"C:\\Python27\\pythonw.exe\" \"C:\\Python27\\Lib\\idlelib\\idle.pyw\" -e \"%1\""
    
    [HKEY_CLASSES_ROOT\Python.NoConFile\shell\Edit with IDLE\command]
    @="\"C:\\Python27\\pythonw.exe\" \"C:\\Python27\\Lib\\idlelib\\idle.pyw\" -e \"%1\""
    
    0 讨论(0)
提交回复
热议问题