当前位置:网站首页>Solve the problem that the right-click menu "edit with idle" of the 『 py 』 file is invalid or missing
Solve the problem that the right-click menu "edit with idle" of the 『 py 』 file is invalid or missing
2022-07-28 15:47:00 【Oliver_ Zyk】
Tips : In the article “『』” Symbol “ In bold ” All for emphasis , The use of both is generally input .
solve 『.py』 Right click menu of file 『Edit with IDLE』 Invalid or missing problems
Preface
The author first installs Python, After the installation Pycharm, From this comes 『.py』 Right click menu of file Edit with IDLE The missing problem .
This passage 4 There are ways to solve the problem , The author uses (*/*) Mark the difficulty of operation , As follows .
Method 1 : Modify registry (***)
1. Open the registry
Key Win + R Go into operation ;

Input 『regedit』 after , Press determine Enter the register editor .
2. Find... In the registry 『.py』 file
Input 『 Computer \HKEY_CLASSES_ROOT\SystemFileAssociations』 find SystemFileAssociations file ;

Find... In this path 『.py 』 file ;

If there is no 『.py 』 file , Need to create ( Right click → newly build → term ).
notes : establish 『.py 』 When you file ,“.”( English full stop ) It can't be less .
3. stay 『.py』 Create a new item in the file according to the following structure , And the assignment

Right click 『.py』, newly build → term , Name it 『shell』, And set its key value to 『Edit with IDLE』;


Right click 『shell』, newly build → term , Name it 『edit』, And set its key value to 『Edit with IDLE』( The details are as above );
Right click 『edit』, newly build → term , Name it 『command』, And set its key value to Python And IDLE Installation path for ( Modify according to the situation ).
notes : See 『 Method 1 4 strip 』, author 『command』 The key values of are as follows , For reference only .
"D:\Program Files\python\python38\pythonw.exe" "D:\Program Files\Python\Python38\Lib\idlelib\idle.pyw" -e %1
4.『command』 Specific setting of key value
find IDLE (Python 3.x 64-bit) Shortcut to ( install Python A... Will be created in the start menu Python 3.x Folder );

Right click → attribute → Shortcut → The goal is , hold The goal is Copy the path of , Paste into the registry 『command』 In key value ;

Continue to 『command』 Enter 『 -e %1』 after , Press determine .
notes : It can be copied directly 『』 The content in , Or in 『command』 Key value IDLE Continue to enter after the target path ( Space )-e( Space )%1.
Method 2 :( indirect ) Install registry (***)
- newly build 『.txt』 file ( Name at will ), desktop → Right click → Text document ;

- stay 『.txt』 Enter the following code in the file ( can Direct copy ), and preservation ;
Windows Registry Editor Version 5.00
# 01. stay “HKEY_CLASSES_ROOT\SystemFileAssociations” Under this item, a new one named “.py” The item
[HKEY_CLASSES_ROOT\SystemFileAssociations\.py]
# 02. stay “.py” Under this item, a new one named “shell” The item
# take “shell” The default value in item is changed to "Edit with IDLE"
[HKEY_CLASSES_ROOT\SystemFileAssociations\.py\shell]
@="Edit with IDLE"
# 03. stay “shell” Under this item, a new one named “edit” The item
# take “edit” The default value in item is changed to "Edit with IDLE"
[HKEY_CLASSES_ROOT\SystemFileAssociations\.py\shell\edit]
@="Edit with IDLE"
# 04. stay “edit” An item named “command” The item
# take “command” The default value in item is changed to “(IDLE The target path of )+( -e %1)"
[HKEY_CLASSES_ROOT\SystemFileAssociations\.py\shell\edit\command]
@="D:\Program Files\python\python38\pythonw.exe "D:\Program Files\Python\Python38\Lib\idlelib\idle.pyw" -e %1"
- Change the suffix of the file from 『.txt』 Change it to 『.reg』;
- double-click The file and press yes .

Method 3 :( direct ) Install registry (***)
Search author resources ( solve 『.py』 Right click menu of file 『Edit with IDLE』 Invalid or missing problems ,https://download.csdn.net/download/qq_41679061/85785103), Download now ;

Download and decompression after , double-click The file and press yes .


Method four : reinstall Python(***)
notes : It is recommended that the default path be installed directly at C disc .
summary
In this paper 4 Methods , Any choice can be solved 『.py』 Right click menu of file 『Edit with IDLE』 Invalid or missing problems .
Please readers according to their own needs , Choose the way you want .
边栏推荐
- Flutter中是使用RxDart代替Stateful
- Perception of life
- 取组合数问题
- FTP file transfer protocol
- 如何搭建openGrok代码服务器
- VirturalBox解决kernel driver问题
- 德国电信否认加强与华为合作,并称过去3年已缩减与华为的合作
- Problem of fetching combinatorial numbers
- Getting started with crawlers (1) -- requests (1)
- How to obtain and embed go binary execution package information
猜你喜欢

Voice social system -- improve the audio system industry chain
![[delete specified number leetcode]](/img/16/b40492d8414a363a3a24f00b4afd47.png)
[delete specified number leetcode]

Rongyun real-time community solution

Learn about the native application management platform of rainbow cloud

Shell programming specifications and variables

Flowable workflow all business concepts

【直播预约】数据架构演进下的新挑战——上海站

5路DI/DO继电器输出远程IO采集模块Modbus TCP/IBF95
![[channel attention mechanism] senet](/img/e6/261ca0ae5a38c26e74de27d90993f7.jpg)
[channel attention mechanism] senet
What are the process specifications of software testing? How to do it?
随机推荐
突发!微星CEO江胜昌坠楼身亡
软件架构与设计(十)-----架构技术
Stateflow逻辑系统建模
[delete specified number leetcode]
知识点qwer
跟我学Rx编程——Concat
4.8 hd-gr GNSS navigation software source code
Getting started with crawlers (1) -- requests (1)
数据实时反馈技术
Regular expression (4)
800V高压系统
Preparing for listing in the United States? Arm announced that it would divest the Internet of things service business: the future will focus on the underlying chip design
Self cultivation of programmers
Sharing of award-winning activities: you can get up to iphone13 after using WordPress to build your own blog
22. Realization of message processing task
Software architecture and design (I) -- key principles
800V high voltage system
try...except异常处理语句(6)
MIT pointed out that the public pre training model should not be used indiscriminately
VirturalBox解决kernel driver问题