sudo apt-get install python3-tk
Python3 ImportError: No module named '_tkinter'
程序员文章站
2022-05-28 22:27:59
...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
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'
解决:
推荐阅读
-
学习Python遇到问题: import urllib.request ImportError: No module named request
-
from dns.resolver import Resolver ImportError: No module named dns.resolver
-
pycharm运行出现ImportError:No module named的解决方法
-
Python3中无法导入ssl模块的解决办法和python3.7 ModuleNotFoundError: No module named bz2解决办法
-
flask-关于ImportError: No module named 'flask.ext'
-
【昊鼎王五】执行python3脚本,报“ModuleNotFoundError: No module named 'dateutil'”错的解决方法
-
解决pycharm终端/cmd运行python脚本报错“ImportError/ModuleNotFoundError:No Module named ...”
-
python3 导入自定义包 ModuleNotFoundError: No module named '__main__ 解决办法
-
python自动化测试之web运行代码报错:importError:no module named selenium
-
解决Win10安装Anaconda,pip install tensorlow,使用Jupyter出现ImportError: No module named 'tensorflow'的问题