webmaster-kazu.com

テクノロジー・データ分析・実践ログ・その他

Pythonで最新のGUIを作成するライブラリ「customtkinter」のインストール

カテゴリ: Python【初歩から現場実務的なもの】

Pythonで最新のGUIを作成するライブラリ「customtkinter」のインストールについて解説しています。

「customtkinter(https://github.com/tomquirk/linkedin-api)」は、Tkinterに基づく Python用のUIライブラリです。

■Python

今回のPythonのバージョンは、「3.8.5」を使用しています。(Windows10)(pythonランチャーでの確認)

■customtkinterをインストールする

customtkinterをインストールを行いますが、今回はpipを経由してインストールを行うので、まずWindowsのコマンドプロンプトを起動します。

pip install customtkinter

起動後、上記のコマンドを入力し、Enterキーを押します。

なお、今回は、pythonランチャーを使用しており、Python Version 3.8.5にインストールを行うために、バージョンの切り替えを行います。

py -3.8 -m pip install customtkinter

切り替えるために、上記のコマンドを入力し、Enterキーを押します。

Defaulting to user installation because normal site-packages is not writeable

Collecting customtkinter

Downloading customtkinter-5.0.5-py3-none-any.whl (294 kB)

---------------------------------------- 294.3/294.3 kB 1.8 MB/s eta 0:00:00

Collecting darkdetect

Downloading darkdetect-0.8.0-py3-none-any.whl (9.0 kB)

Installing collected packages: darkdetect, customtkinter

Successfully installed customtkinter-5.0.5 darkdetect-0.8.0

Enterキーを押すと、インストールが開始され、「Successfully installed」と表示されます。これが表示されれば、customtkinterが正常にインストールされたことになります。

なお、今回はcustomtkinterのバージョン5.0.5をインストールしました。