How to correct TCL_LIBRARY and TK_LIBRARY with py2exe

我是研究僧i 提交于 2019-12-06 03:50:48

Tcl version 8.5.11 & 8.5.2 conflicts solved by manually replace tcl8.5, tk8.5, tcl85.dll and tk85.dll with the ones from python installation path, I believe it can also be solved by change the path environment variable. But I still have to manually set the TCL_LIBRARY and TK_LIBRARY, I made a windows batch wrapper test.bat:

set TCL_LIBRARY=.\tcl\tcl8.5\
set TK_LIBRARY=.\tcl\tk8.5\
slideshow.exe %1

This works, any better ideas?

A correct Tcl and Tk installation will have the right value of those environment variables baked into it during build time; they only really exist to permit testing prior to installation (very useful for the developers of Tcl/Tk, best avoided for everyone else). If they're not connected up properly, or are finding the wrong version of the script libraries, there's a serious problem with your installation. (Note that this does mean that you should not normally move things around after installation, but that's not too much of a problem for most people.)

The usual advice in this sort of situation is to wipe the Tcl and Tk installations and start again, making sure that the correct installation location is specified to configure via the --prefix option. I have no idea how the addition of Python into the mix affects things.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!