gjc2010gys 发表于 2021-8-12 18:47:46

PythonGUI程序无法运行

我的Python程序无法运行,报出TclError。已尝试过重新安装,但没有奏效。以下为错误报告:

发生异常: TclError

Can't find a usable init.tcl in the following directories:
    C:/Users/Root/AppData/Local/Programs/Python/Python38/lib/tcl8.6 C:/Users/Root/AppData/Local/Programs/Python/lib/tcl8.6 C:/Users/Root/AppData/Local/Programs/lib/tcl8.6 C:/Users/Root/AppData/Local/Programs/Python/library C:/Users/Root/AppData/Local/Programs/library C:/Users/Root/AppData/Local/Programs/tcl8.6.9/library C:/Users/Root/AppData/Local/tcl8.6.9/library

This probably means that Tcl wasn't installed properly.

请各位大神帮帮忙吧。

gjc2010gys 发表于 2021-8-12 21:40:46

还是自己摸索出来的{:10_266:}{:10_266:},在Python安装目录找到init.tcl的文件,把这个文件所在的文件夹复制到列出的目录,然后就可以了。

nahongyan1997 发表于 2021-8-13 10:19:58

那我就来蹭最佳了

gjc2010gys 发表于 2021-8-13 11:22:29

nahongyan1997 发表于 2021-8-13 10:19
那我就来蹭最佳了

至少你先把我说的复制下来先把,或者提供同样的解决方法。

叼辣条闯世界 发表于 2021-8-13 11:29:53

在Python安装目录找到init.tcl的文件,把这个文件所在的文件夹复制到列出的目录,然后就可以了。

nahongyan1997 发表于 2021-8-13 12:48:33

叼辣条闯世界 发表于 2021-8-13 11:29
在Python安装目录找到init.tcl的文件,把这个文件所在的文件夹复制到列出的目录,然后就可以了。

卧槽666

nahongyan1997 发表于 2021-8-13 12:49:17

蹭,就是硬蹭
页: [1]
查看完整版本: PythonGUI程序无法运行