Python 3 启动IDLE时报错Subprocess Startup Error的解决办法

最近在公司计算机(Windows)上安装Python 3.7.3,安装完成后本打算直接运行IDLE。结果IDLE提示错误Subprocess Startup Error,点击“确定”按钮后IDLE自行关闭。

解决方案如下:

1. 找到并打开:<Python的安装目录>\Lib\idlelib\pyshell.py文件。

2. 找到函数定义"def main():"。

3. 在步骤2语句所在行的往下几行找到如下语句,并修改。
            use_subprocess = True
            修改为:
            use_subprocess = False

4. 保存文件关闭后重启IDLE即可。

参考资料:https://blog.csdn.net/xiaoyaotan123/article/details/40159691

原文地址:https://www.cnblogs.com/r0xFED/p/11111790.html

时间: 2024-08-01 14:26:37

Python 3 启动IDLE时报错Subprocess Startup Error的解决办法的相关文章

UEditor 粘贴 Excell 中的表格时报错导致无法粘贴的解决办法

开始->运行->gpedit.msc,打开策略组编辑器,在树状菜单中选 择计算机配置->管理模板->终端服务,在右侧窗口中打开"限制 连接数量",选择"已启用",修改"TS允许的最大连接数",确定 . 完成以上两步可以解决远程连接最大值你能为3个(包括本地控制台 )的问题.如果需要使多用户可以同时使用同一个用户名登录远程连 接,那么还需要进行一下设置: 开始->运行->tscc.msc,打开终端服务配置,点击&

Spring Boot连接MySQL报错“Internal Server Error”的解决办法

报错信息如下: {timestamp: "2018-06-14T03:48:23.436+0000", status: 500, error: "Internal Server Error",-} error : "Internal Server Error" message : "Could not open JDBC Connection for transaction; nested exception is java.sql.S

xcode构建webdriverAgent时报错Messaging unqualified id的解决办法

在使用xcode构建webdriverAgent时,提示build failed,报错信息为:semantic issue:Messaging unqualified id,可以参考以下解决方案 xcode版本:10.2 ios版本:10.3 appium版本:1.7.2 打开终端进入webdriver的目录,我的目录如下 /Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium

Linux 报错:syntax error &quot;C&quot; 解决办法(此处选择bash系统)

出现此问题的原因,是由系统的兼容性引起的,linux下默认了指向dash而非bash. linux下Dash改Bash: 1.先查看是使用哪个shell ls -al /bin/sh 2.#如果是Dash可以用以下方法切回bash(选择NO) 方法一:sudo dpkg-reconfigure  dash 方法二:sudo ln-fs  /bin/bash   /bin/sh (感谢其他的前辈,这是之前从网上查找后,自己做的笔记,自己整理出来,作为我的成长之路的经历,写此博客是为了记录自己出现过

MyEclipse for Spring启动时报错&quot;An internal error occurred during: &#39;Updating indexes&#39;.Java heap space&quot;的解决办法

问题 MyEclipse for Spring在启动时,报如下错误:An internal error occurred during: 'Updating indexes'.Java heap space 解决办法 对于这种问题,可以采用禁止MyEclipse的updating indexes的方法来解决. Window -> Preferences -> Myeclipse -> Maven4Myeclipse,禁用Download repository index updates

Linux 启动 Apache 时报错:(98)Address already in use: make_sock: could not bind to address [::]:80

1. 启动 Apache 时报错: [[email protected] sh]# service httpd start Starting httpd: httpd: Could not reliably determine the server's fully qualified domain name, using localhost.localdomain for ServerName (98)Address already in use: make_sock: could not bi

安装Python的psutil模块时报错:error: command &#39;gcc&#39; failed with exit status 1

安装Python的psutil模块: tar zxvf psutil-2.0.0.tar.gz cd psutil-2.0.0 python setup.py install 报错: running install running bdist_egg ...... psutil/_psutil_linux.c:12:20: error: Python.h: No such file or directory In file included from psutil/_psutil_linux.c

MyEclipse 启动tomcat时报错:Cannot change deployment state from ERROR to REDEPLOYING.ds

myeclipse 启动tomcat时报错:Cannot change deployment state from ERROR to REDEPLOYING.ds - 刘琦的专栏 - 博客频道 - CSDN.NET http://blog.csdn.net/u012922219/article/details/42869361   错误 : 无改将部署状态从"错误"变成"重新部署"状态. 解决办法: 右击"项目名" –> MyEclipse

执行python manage.py makemigrations时报错TypeError: __init__() missing 1 required positional argument: &#39;on_delete&#39;

在执行python manage.py makemigrations时报错: TypeError: __init__() missing 1 required positional argument: 'on_delete' 解决方法: 在连接外键时加上: on_delete=models.CASCADE 执行python manage.py makemigrations时报错TypeError: __init__() missing 1 required positional argument