Created
April 5, 2020 17:40
-
-
Save fhsinchy/f31b4ba3be90669ffdf75ebfb00982be to your computer and use it in GitHub Desktop.
Installation process of python 3 with tcl-tk and pyenv
This file contains 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
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