Skip to content

Instantly share code, notes, and snippets.

@fhsinchy
Created April 5, 2020 17:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fhsinchy/f31b4ba3be90669ffdf75ebfb00982be to your computer and use it in GitHub Desktop.
Save fhsinchy/f31b4ba3be90669ffdf75ebfb00982be to your computer and use it in GitHub Desktop.
Installation process of python 3 with tcl-tk and pyenv
brew install pyenv
brew install tcl-tk
# add these to your rc file
# tcl-tk
export PATH="/usr/local/opt/tcl-tk/bin:$PATH"
export LDFLAGS="-L/usr/local/opt/tcl-tk/lib"
export CPPFLAGS="-I/usr/local/opt/tcl-tk/include"
export PKG_CONFIG_PATH="/usr/local/opt/tcl-tk/lib/pkgconfig"
export PYTHON_CONFIGURE_OPTS="--with-tcltk-includes='-I/usr/local/opt/tcl-tk/include' --with-tcltk-libs='-L/usr/local/opt/tcl-tk/lib -ltcl8.6 -ltk8.6'"
pyenv install 3.8.2
pyenv global 3.8.2
python -m tkinter -c 'tkinter._test()'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment