Reputation:
I've encountered similar errors while using several different packages like matplotlib and pymc3, error message said:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Python36\lib\site-packages\matplotlib\pyplot.py", line 115, in <module>
_backend_mod, new_figure_manager, draw_if_interactive, _show = pylab_setup()
File "C:\Python36\lib\site-packages\matplotlib\backends\__init__.py", line 32, in pylab_setup
globals(),locals(),[backend_name],0)
File "C:\Python36\lib\site-packages\matplotlib\backends\backend_tkagg.py", line 6, in <module>
from six.moves import tkinter as Tk
File "C:\Python36\lib\site-packages\six.py", line 92, in __get__
result = self._resolve()
File "C:\Python36\lib\site-packages\six.py", line 115, in _resolve
return _import_module(self.mod)
File "C:\Python36\lib\site-packages\six.py", line 82, in _import_module
__import__(name)
ModuleNotFoundError: No module named 'tkinter'
I'm totally new to python, have no idea what tkinter is. After some googles, I tried to install ActiveTcl 8.6.4 into default path, but it doesn't work.
What should I do?
Upvotes: 0
Views: 4093
Reputation:
Finally, I figured out what happened. I unchecked tcl/tk option before installation, that may be the problem. I modified my python installation just now, hope it could help.
Upvotes: 2