当前位置:网站首页>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 .
边栏推荐
- 虚拟机之NAT模式下设置静态IP
- 爆肝整理 JVM 十大模块知识点总结,不信你还不懂
- Summary and arrangement of postgraduate entrance examination information of 985 colleges and universities nationwide
- Common methods of qcustomplot drawing tools
- Some operations of bit operation
- 知识点qwer
- 突发!微星CEO江胜昌坠楼身亡
- EasyExcel复杂表头导出(一对多)
- 软件架构与设计(四)-----数据流架构
- 7. Definitions of real-time data backup and real-time clock
猜你喜欢

Summarize the knowledge points of the ten JVM modules. If you don't believe it, you still don't understand it

如何有效进行回顾会议(上)?

PXE network installation

5路DI/DO继电器输出远程IO采集模块Modbus TCP/IBF95

FTP文件传输协议

Docker容器实现MySQL主从复制

Software architecture and design (IV) -- data flow architecture

软件架构与设计(十)-----架构技术

FTP file transfer protocol

800V高压系统
随机推荐
已拿下华为85亿元屏幕订单?维信诺回应:客户要求保密,无法回复!
7. Definitions of real-time data backup and real-time clock
软件架构与设计(一)-----关键原则
monkey压力测试
How to obtain and embed go binary execution package information
兆骑科创创业大赛平台,活动路演,投融资对接
String (3)
【删除指定数字——leetcode]
Framework customization series (I) -- systemui NavigationBar slide back to launcher on the navigation bar
Rxdart is used instead of stateful in fluent
Leetcode bracket validity problem
0-75mV/0-100mV转RS485/232通讯接口MODBUS RTU采集模块IBF8
Problem of fetching combinatorial numbers
Deutsche Telekom denied strengthening its cooperation with Huawei and said it had reduced its cooperation with Huawei in the past three years
8. Realization of real-time data backup and real-time clock function
The price war of off screen fingerprints has resumed, and second-line manufacturers are expected to win 30% of the market this year?
Return the two subscripts of the array according to the input target.
How to compress and decompress ramdisk.img
Try... Except exception handling statement (6)
Nftscan and nftplay have reached strategic cooperation in the field of NFT data