LoginSignup
0
0

More than 3 years have passed since last update.

TkinterをMacbookに入れて動作確認

Last updated at Posted at 2020-11-19

1. インストール

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. 動作確認

@chibi929さんのQiita記事「tkinter で作った GUI の実行可能ファイルを作る」

Terminal
% python -m tkinter

成功!

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

Tkinter のインストールとバージョン確認

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

成功!

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

Python3
>>> quit()
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0