I recently spent couple hours making tkinter
and IDLE work on my pyenv
Python installation (macOS).
Why you are here?
- You manage Python versions with
pyenv
on macOS and - ( You want IDLE - the development environment for Python - work on your macOS
- or you want
tkinter
module work )
What's wrong?
You get one of the following errors:
Python may not be configured for Tk
onimport tkinter
import _tkinter # If this fails your Python may not be configured for Tk
RuntimeError: tk.h version (8.6) doesn't match libtk.a version (8.5)
ModuleNotFoundError: No module named '_tkinter'