Error no module “Tkinter”
Principle:
Import Tkinter in python3 import Tkinter in python2
It’s just the difference in the case of the beginning in the python version.
Therefore, we can modify the startup version of Python. One is to directly modify the system version, and the other is to modify the specified version of Python file
here we mainly talk about how to modify the specified version of Python files.
Add the following two lines at the beginning of the .Py file:
#! /usr/bin/python2.7
# -*- coding utf-8 -*-
Read More:
- How to Solve PyInstaller Package Error: ModuleNotFoundError: No module named ‘xxxx‘
- How to Solve Python AttributeError: ‘module’ object has no attribute ‘xxx’
- How to Solve no module fcntl Error in Windows
- [Mac M1] How to Solve import wordcloud Error: ModuleNotFoundError: No module named ‘wordcloud‘
- How to Solve pyqt5 imports module Error
- How to Solve word2vec Module Error: AttributeError & UnicodeDecodeError
- Python: How to Solve multiprocessing module Error in Windows
- [Solved] Failed to obtain/convert traceback after Python Tkinter packages exe
- How to Solve Python AttributeError: ‘dict’ object has no attribute ‘item’
- How to Solve attributeerror: ‘list’ object has no attribute ‘shape‘
- Module not found error: no module named ‘filefolder’ appears when learning engineering knowledge
- Django uses Mysql to report an error loading MySQL DB module: no module named ‘mysqldb’
- Module notfounderror when installing suds: no module named ‘client’ solution
- How to Solve Turtle_tf Error in ROS
- Python: How to Solve error While importing windpy
- [Solved] AttributeError: module ‘logging‘ has no attribute ‘Handler‘
- [Python] Right-click Selenium to Save the picture error: attributeerror: solution to module ‘pyscreen’ has no attribute ‘locationonwindow’
- [Solved] Pytest Error: E ModuleNotFoundError: No module named ‘common
- How to Solve Yolox Training C Disk Full Issue
- [How to Solve] ImportError: No module named typing