tkinter.TclError: Cant find a usable init.tcl in the following ...Tcl wasnt installed properly

在虚拟环境中运行matplotlib相关的包时报错,

Traceback (most recent call last):
  File ".\standardplot.py", line 5, in
    plt.plot(x, np.sin(x))       # Plot the sine of each x point
  File "D:\workspace\python\HELLO\venv\lib\site-packages\matplotlib\pyplot.py", line 3352, in plot
    ax = gca()
  File "D:\workspace\python\HELLO\venv\lib\site-packages\matplotlib\pyplot.py", line 969, in gca
    return gcf().gca(**kwargs)
  File "D:\workspace\python\HELLO\venv\lib\site-packages\matplotlib\pyplot.py", line 586, in gcf
    return figure()
  File "D:\workspace\python\HELLO\venv\lib\site-packages\matplotlib\pyplot.py", line 533, in figure
    **kwargs)
  File "D:\workspace\python\HELLO\venv\lib\site-packages\matplotlib\backend_bases.py", line 161, in new_figure_manager
    return cls.new_figure_manager_given_figure(num, fig)
  File "D:\workspa

你可能感兴趣的:(python,python)