Python IDLE 不起作用,因为缺少 python.exe
Python IDLE doesn't work because python.exe is missing
当我尝试使用 IDLE 打开 .py 文件时(右键单击和 "edit with IDLE"),Windows 会询问是否使用 python.exe
打开此文件。如果我选择 python,IDLE 将无法正常启动。
如果我使用 "open with" 并导航到 Python27\Lib\idlelib\idle.bat
,我会得到一个错误:
Windows cannot find 'C:\Python27\Lib\idlelib....\pythonw.exe
如果我从开始菜单启动 IDLE,Windows 将打开安装程序并显示 "Please wait while Windows configures Python 2.7.13 (64-bit)"
如果我有可用的 Python 安装文件,它会显示 "Error writing to file C:\Python27\pythonw.exe"
.
从 CMD 启动 IDLE(例如 >>python.exe C:\Python27\Lib\idlelib\idle.py
)工作正常。
我没有在 C:\Python27\
下看到 pythonw.exe
。它应该存在吗?它如何自我删除?
我使用的是 Windows 10,这个问题很久以前就出现了。我完全重新安装了 python 和软件包,问题暂时得到解决,但今天又出现了。
好的,我已经安装了 Process Monitor 并设置了过滤器来监控 Python 文件夹。原来 Avast 已经忙于删除 pythonw.exe
几个月了。
一开始很少发生,但最后 12 次删除是过去几天的。
固定
当我尝试使用 IDLE 打开 .py 文件时(右键单击和 "edit with IDLE"),Windows 会询问是否使用 python.exe
打开此文件。如果我选择 python,IDLE 将无法正常启动。
如果我使用 "open with" 并导航到 Python27\Lib\idlelib\idle.bat
,我会得到一个错误:
Windows cannot find 'C:\Python27\Lib\idlelib....\pythonw.exe
如果我从开始菜单启动 IDLE,Windows 将打开安装程序并显示 "Please wait while Windows configures Python 2.7.13 (64-bit)"
如果我有可用的 Python 安装文件,它会显示 "Error writing to file C:\Python27\pythonw.exe"
.
从 CMD 启动 IDLE(例如 >>python.exe C:\Python27\Lib\idlelib\idle.py
)工作正常。
我没有在 C:\Python27\
下看到 pythonw.exe
。它应该存在吗?它如何自我删除?
我使用的是 Windows 10,这个问题很久以前就出现了。我完全重新安装了 python 和软件包,问题暂时得到解决,但今天又出现了。
好的,我已经安装了 Process Monitor 并设置了过滤器来监控 Python 文件夹。原来 Avast 已经忙于删除 pythonw.exe
几个月了。
一开始很少发生,但最后 12 次删除是过去几天的。
固定