1
回答
If this fails your Python may not be configured for Tk ImportError: No module named '_tkinter'
利用AWS快速构建适用于生产的无服务器应用程序,免费试用12个月>>>   

python3.5 的

 ImportError: No module named '_tkinter'

找不到

 

"/home/Test1/Desktop/root/tensorflow-tutorial-master/Deep_Learning_with_TensorFlow/0.12.1/Chapter06/2.2.+?????????.py", line 8, in <module>
    import matplotlib.pyplot as plt
  File "/usr/local/lib/python3.5/site-packages/matplotlib/pyplot.py", line 115, in <module>
    _backend_mod, new_figure_manager, draw_if_interactive, _show = pylab_setup()
  File "/usr/local/lib/python3.5/site-packages/matplotlib/backends/__init__.py", line 32, in pylab_setup
    globals(),locals(),[backend_name],0)
  File "/usr/local/lib/python3.5/site-packages/matplotlib/backends/backend_tkagg.py", line 6, in <module>
    from six.moves import tkinter as Tk
  File "/usr/local/lib/python3.5/site-packages/six.py", line 92, in __get__
    result = self._resolve()
  File "/usr/local/lib/python3.5/site-packages/six.py", line 115, in _resolve
    return _import_module(self.mod)
  File "/usr/local/lib/python3.5/site-packages/six.py", line 82, in _import_module
    __import__(name)
  File "/usr/local/lib/python3.5/tkinter/__init__.py", line 35, in <module>
    import _tkinter # If this fails your Python may not be configured for Tk
ImportError: No module named '_tkinter'

<无标签>
举报
Baclk5
发帖于9个月前 1回/378阅
顶部