Python3でHTMLを生成するためのライブラリ「domonic」をインストールする

スポンサーリンク

Python3でHTMLを生成するためのライブラリ「domonic」のインストールについて解説しています。

domonicのライブラリは、Python3でHTMLを生成することができます。ラピッドプロトタイピング(試作品を短時間で生成する)ツールです。

■Python

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

■domonicをインストールする

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

pip install domonic

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

なお、今回は、pythonランチャーを使用しており、Python Version 3.8.5にインストールを行うために、pipを使う場合にはコマンドでの切り替えを行います。

py -3.8 -m pip install domonic

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

Defaulting to user installation because normal site-packages is not writeable
Collecting domonic
Downloading domonic-0.5.1-py3-none-any.whl (217 kB)
|████████████████████████████████| 217 kB 656 kB/s
Requirement already satisfied: urllib3 in c:\users\user_\appdata\roaming\python\python38\site-packages (from domonic) (1.26.5)
Requirement already satisfied: requests in c:\users\user_\appdata\roaming\python\python38\site-packages (from domonic) (2.25.1)
Requirement already satisfied: python-dateutil in c:\users\user_\appdata\roaming\python\python38\site-packages (from domonic) (2.8.1)
Requirement already satisfied: idna<3,>=2.5 in c:\users\user_\appdata\roaming\python\python38\site-packages (from requests->domonic) (2.10)
Requirement already satisfied: certifi>=2017.4.17 in c:\users\user_\appdata\roaming\python\python38\site-packages (from requests->domonic) (2021.5.30)
Requirement already satisfied: chardet<5,>=3.0.2 in c:\users\user_\appdata\roaming\python\python38\site-packages (from requests->domonic) (4.0.0)
Requirement already satisfied: six>=1.5 in c:\users\user_\appdata\roaming\python\python38\site-packages (from python-dateutil->domonic) (1.15.0)
Installing collected packages: domonic
Successfully installed domonic-0.5.1

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

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

コメント

タイトルとURLをコピーしました