Terminal
% brew install tcl-tk
% echo 'export PATH="/usr/local/opt/tcl-tk/bin:$PATH"' >> ~/.bash_profile
% 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"
% source ~/.bash_profile
・ @ Chibi929's Qiita article "Creating a GUI executable file created with tkinter"
Terminal
% python -m tkinter
-Install Tkinter and check version
Python3
% python3
Python 3.9.0
>>>
>>> import tkinter
>>> tkinter._test()
Python3
>>> quit()
Recommended Posts