Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save cengizhancaliskan/d51edeb6bc929a5a706b2270797efe70 to your computer and use it in GitHub Desktop.
Save cengizhancaliskan/d51edeb6bc929a5a706b2270797efe70 to your computer and use it in GitHub Desktop.
pyenv tkinter problem solve on macos
```bash
$ brew install tcl-tk
$ pyenv uninstall {used_version}
$ env \
PATH="$(brew --prefix tcl-tk)/bin:$PATH" \
LDFLAGS="-L$(brew --prefix tcl-tk)/lib" \
CPPFLAGS="-I$(brew --prefix tcl-tk)/include" \
PKG_CONFIG_PATH="$(brew --prefix tcl-tk)/lib/pkgconfig" \
CFLAGS="-I$(brew --prefix tcl-tk)/include" \
PYTHON_CONFIGURE_OPTS="--with-tcltk-includes='-I$(brew --prefix tcl-tk)/include' --with-tcltk-libs='-L$(brew --prefix tcl-tk)/lib -ltcl8.6 -ltk8.6'" \
pyenv install {used_version}
$ pyenv global {used_version}
$ pyenv local {used_version}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment