Install tkinter for python on mac

broken image
broken image

Perhaps you may want to use python 3.x.x on your machine and also use pip for package. If pyenv refuses to build or stalls out using the above method skip using env try this: env \ in the Python standard library for the Windows and macOS distributions. PYTHON_CONFIGURE_OPTS='-enable-framework -with-tcltk-includes='-I$(brew -prefix tcl-tk)/include' -with-tcltk-libs='-L$(brew -prefix tcl-tk)/lib -ltcl8.6 -ltk8.6' ' \ Note: Tkinter comes pre-installed with Python3, and you need not bother about. PKG_CONFIG_PATH='$(brew -prefix tcl-tk)/lib/pkgconfig' \ĬFLAGS='-I$(brew -prefix tcl-tk)/include' \ As noted, the easiest way to get Tk and Tkinter installed on your system is using Pythons binary Tkinter (Tk) is a Python default GUI and. LDFLAGS='-L$(brew -prefix tcl-tk)/lib' \ĬPPFLAGS='-I$(brew -prefix tcl-tk)/include' \

broken image

PATH='$(brew -prefix tcl-tk)/bin:$PATH' \

broken image

From scratch: Uninstall homebrew if needed: