How to Solve Error: Error no module “Tkinter”

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: