Created
June 26, 2020 20:40
-
-
Save cengizhancaliskan/d51edeb6bc929a5a706b2270797efe70 to your computer and use it in GitHub Desktop.
pyenv tkinter problem solve on macos
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
```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