为什么我在Python Shell 3.6.4上获得OSError?

时间:2018-04-14 12:03:50

标签: python-3.x shell python-idle

我尝试禁用Windows防火墙但尚未纠正。

这是我在Python 3.6.4 Shell上的简单命令。它来自Anacoda 3。

>>> 1 + 2
IDLE internal error in runcode()
Traceback (most recent call last):
File "C:\Users\Arshad Shariff\Anaconda3\lib\idlelib\rpc.py", line 339, in putmessage
r, w, x = select.select([], [self.sock], [])
TypeError: argument must be an int, or have a fileno() method.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

操纵这些线路240,339,342会不会让外壳运转起来?

File "C:\Users\Arshad Shariff\Anaconda3\lib\idlelib\rpc.py", line 240, in asyncqueue
self.putmessage((seq, request))
File "C:\Users\Arshad Shariff\Anaconda3\lib\idlelib\rpc.py", line 342, in    putmessage
raise OSError("socket no longer exists")
OSError: socket no longer exists

我不知道如何解决它。

1 个答案:

答案 0 :(得分:0)

由于“重新安装”是答案,我将其张贴。