w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Cannot import tkinter after installing Python 3 with pyenv

Change your code to:

import tkinter

Documentation link:

Most of the time, tkinter is all you really need, but a number of additional modules are available as well. The Tk interface is located in a binary module named _tkinter. This module contains the low-level interface to Tk, and should never be used directly by application programmers. It is usually a shared library (or DLL), but might in some cases be statically linked with the Python interpreter.





© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.