【问题标题】:Tcl wasn't properly installed on AnacondasTcl 没有正确安装在 Anacondas 上
【发布时间】:2013-08-08 07:30:15
【问题描述】:

我用 Python 3.3 安装了相当新的 Anaconda,并且正在使用 Pydev。

当我尝试使用 tkinter 时

from tkinter import Tk

master = Tk() # create a Tk root widget, which is a window

我收到以下消息

_tkinter.TclError: Can't find a usable init.tcl in the following directories: 
    C:/Anaconda/envs/p33/lib/tcl8.5 C:/Anaconda/envs/lib/tcl8.5 C:/Anaconda/lib/tcl8.5 C:/Anaconda/envs/library C:/Anaconda/library C:/Anaconda/tcl8.5.11/library C:/tcl8.5.11/library

此页面 (http://mail.python.org/pipermail/python-list/2011-March/599573.html) 建议我需要更改 TCL_LIBRARY 环境变量。但我不知道该怎么做。

如何让 tkinter 与我的构建一起工作?

【问题讨论】:

    标签: pydev python-3.3 anaconda


    【解决方案1】:

    这不是一个合适的解决方案,但我通过复制文件夹让它工作

    C:\Anaconda\envs\p33\tcl\tcl8.5
    C:\Anaconda\envs\p33\tcl
    

    C:\Anaconda\envs\p33\Lib
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-03-21
      • 2017-04-26
      • 2019-01-07
      • 2019-01-27
      相关资源
      最近更新 更多