python3 tkinter模块_关于python 3.x:ImportError:没有名为’_tkinter’的模块,请安装python3-tk包...

Traceback (most recent call last):

File"/usr/lib/python3.5/tkinter/init.py", line 36, in

import _tkinter

ImportError: No module named '_tkinter'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File"/home/manuelanayantarajeyaraj/PycharmProjects/ChatbotWord2Vec/main.py", line 2, in

from matplotlib import pyplot as plt

File"/home/manuelanayantarajeyaraj/usr/myProject/my_project/lib/python3.5/site-packages/matplotlib/pyplot.py", line 115, in

_backend_mod, new_figure_manager, draw_if_interactive, _show = pylab_setup()

File"/home/manuelanayantarajeyaraj/usr/myProject/my_project/lib/python3.5/site-packages/matplotlib/backends/init.py", line 62, in pylab_setup

[backend_name], 0)

File"/home/manuelanayantarajeyaraj/usr/myProject/my_project/lib/python3.5/site-packages/matplotlib/backends/backend_tkagg.py", line 4, in

from . import tkagg # Paint image to Tk photo blitter extension.

File"/home/manuelanayantarajeyaraj/usr/myProject/my_project/lib/python3.5/site-packages/matplotlib/backends/tkagg.py", line 5, in

from six.moves import tkinter as Tk

File"/home/manuelanayantarajeyaraj/usr/myProject/my_project/lib/python3.5/site-packages/six.py", line 92, in get

result = self._resolve()

File"/home/manuelanayantarajeyaraj/usr/myProject/my_project/lib/python3.5/site-packages/six.py", line 115, in _resolve

return _import_module(self.mod)

File"/home/manuelanayantarajeyaraj/usr/myProject/my_project/lib/python3.5/site-packages/six.py", line 82, in _import_module

import(name)

File"/usr/lib/python3.5/tkinter/init.py", line 38, in

raise ImportError(str(msg) + ', please install the python3-tk package')

ImportError: No module named '_tkinter', please install the python3-tk package

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值