升级了一下 ipython 执行就报上述错误,,执行步骤如下:
D:\Python38\vexe\Scripts>ipython --pylab=tk
Python 3.8.10 (tags/v3.8.10:3d8993a, May 3 2021, 11:48:03) [MSC v.1928 64 bit (AMD64)]
Type 'copyright', 'credits' or 'license' for more information
IPython 8.12.3 -- An enhanced Interactive Python. Type '?' for help.
Installed tk event loop hook.
Shell is already running a gui event loop for tk. Call with no arguments to disable the current loop.
In [1]: x = arange(0, 2*pi, pi/100)
In [2]: plot(x, sin(x))
Out[2]: [<matplotlib.lines.Line2D at 0x224b1e5ee20>]
In [3]:
执行 plot 后弹出 Figure 窗口,,但窗口无内容显示,,一直处于卡死状态,,关闭 Figure 窗口后 ipython 也终止执行
求教这个问题有大侠遇到吗??怎么解决?
1
XIVN1987 OP |