如何解决“这可能意味着TCL未正确安装”?

时间:2018-10-29 15:18:32

标签: python tkinter tcl

我对如何解决此TCL错误感到困惑

 File "draw_box.py", line 53, in <module>
    fig, ax = plt.subplots(1)
  File "/cm/shared/apps/tensorflow/1.4/python3/GPU/lib/python3.6/site-packages/matplotlib/pyplot.py", line 1198, in subplots
    fig = figure(**fig_kw)
  File "/cm/shared/apps/tensorflow/1.4/python3/GPU/lib/python3.6/site-packages/matplotlib/pyplot.py", line 548, in figure
    **kwargs)
  File "/cm/shared/apps/tensorflow/1.4/python3/GPU/lib/python3.6/site-packages/matplotlib/backend_bases.py", line 161, in new_figure_manager
    return cls.new_figure_manager_given_figure(num, fig)
  File "/cm/shared/apps/tensorflow/1.4/python3/GPU/lib/python3.6/site-packages/matplotlib/backends/_backend_tk.py", line 1044, in new_figure_manager_given_figure
    window = Tk.Tk(className="matplotlib")
  File "/cm/shared/apps/anaconda3/4.4.0/lib/python3.6/tkinter/__init__.py", line 2017, in __init__
    self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use)
_tkinter.TclError: Can't find a usable init.tcl in the following directories: 
    /opt/anaconda1anaconda2anaconda3/lib/tcl8.5 /cm/shared/apps/tensorflow/1.4/python3/GPU/lib/tcl8.5 /cm/shared/apps/tensorflow/1.4/python3/lib/tcl8.5 /cm/shared/apps/tensorflow/1.4/python3/GPU/library /cm/shared/apps/tensorflow/1.4/python3/library /cm/shared/apps/tensorflow/1.4/python3/tcl8.5.18/library /cm/shared/apps/tensorflow/1.4/tcl8.5.18/library

我需要设置TCL和TK环境吗?还是这只是TCL8.5的路径不在正确的位置?我在linux终端(redhat)上使用python3,任何解决此问题的建议都很棒!

0 个答案:

没有答案