python子进程没有连接_python-没有空闲子进程连接

我是python编程的新手,并且想尝试在IDLE中而不是OSX命令行中编辑脚本.但是,当我尝试启动它时,出现错误“空闲子进程未建立连接.要么空闲无法启动子进程,要么个人防火墙软件阻止了连接.”我没有配置防火墙,那可能是什么问题?

解决方法:

您可以尝试使用“ -n”选项运行IDLE.从IDLE帮助中:

Running without a subprocess:

If IDLE is started with the -n command line switch it will run in a

single process and will not create the subprocess which runs the RPC

Python execution server. This can be useful if Python cannot create

the subprocess or the RPC socket interface on your platform. However,

in this mode user code is not isolated from IDLE itself. Also, the

environment is not restarted when Run/Run Module (F5) is selected. If

your code has been modified, you must reload() the affected modules and

re-import any specific items (e.g. from foo import baz) if the changes

are to take effect. For these reasons, it is preferable to run IDLE

with the default subprocess if at all possible.

标签:subprocess,python,macos

来源: https://codeday.me/bug/20191106/1998882.html

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值