Tkinter not working mac osx el capitan

守給你的承諾、 提交于 2019-12-11 14:14:26

问题


I was trying to import using Python2.7 the module Tkinter in MAC OSX el capitan Version 10.11, but I have the following error:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk/Tkinter.py", line 39, in <module>
       import _tkinter # If this fails your Python may not be configured for Tk
ImportError: No module named _tkinter

I would like to get a solution for this problem, because seems to be an instalation problem and the webpage ActiveTCL seems to be broken

来源:https://stackoverflow.com/questions/33369085/tkinter-not-working-mac-osx-el-capitan

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