[PYTHON] Put Tkinter in Macbook and check operation

1. Installation

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

2. Operation check

@ Chibi929's Qiita article "Creating a GUI executable file created with tkinter"

Terminal


% python -m tkinter

success!

スクリーンショット 2020-11-20 0.28.34.png

-Install Tkinter and check version

Python3


% python3
Python 3.9.0
>>>
>>> import tkinter
>>> tkinter._test()

success!

スクリーンショット 2020-11-20 0.33.20.png

Python3


>>> quit()

Recommended Posts

Put Tkinter in Macbook and check operation
Django installation and operation check
Check and move directories in Python
Put logger in the open source pip package and analyze the operation
Check and receive Serial port in Python (Port check)
Find and check inverse matrix in Python
Put Linux in your Chromebook and use R ...
Install OpenCV 3 (core + contrib) in Windows & Python 3 environment & Difference between OpenCV 2 and OpenCV 3 & Easy operation check
Write tests in Python to profile and check coverage
Put matplotlib in Centos7.
Put jedi in emacs 24
Tab app in Tkinter
Put pip in Blender
Check the operation of Python for .NET in each environment
Check the Check button in Tkinter to allow Entry to be edited