How to change the tk version of your Python installation?

喜夏-厌秋 提交于 2019-12-20 02:10:54

问题


I have just removed my old Python framework using this procedure, and I have installed Python 3.4.3 for my architecture, which appears to be i386 according to the following command uname -p, so I have downloaded and installed the following version Mac OS X 32-bit i386/PPC installer.

Now, I want to use tkinter, but it seems that it is using the Tcl/Tk version 8.4 instead of the lastest one 8.6:

>>> tkinter.TclVersion
8.4
>>> tkinter.TkVersion
8.4
>>> 

Now, I have cheked under the directory /Library/Frameworks/Tk.framework/ which versions I have installed, but the result is:

8.5     8.6     Current

Which means that the Python distribution that I have just installed is using another version of Tcl/Tk from somewhere else.

Now, how do I change the Tcl/tk version that is being used?

来源:https://stackoverflow.com/questions/30609214/how-to-change-the-tk-version-of-your-python-installation

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