HTMLやJSの知識不要で簡単なWebアプリを構築できる「PyWebIO」をインストールする

スポンサーリンク

HTMLやJSの知識不要で簡単なWebアプリを構築できる「PyWebIO」のインストールについて解説しています。

PyWebIOライブラリは、ブラウザ上でユーザの入出力を取得する一連の命令型関数を提供しています。これらを用い、簡単なWebアプリケーションやブラウザベースのGUIアプリケーションを構築することができます。

■Python

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

■PyWebIOをインストールする

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

pip install pywebio

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

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

py -3.8 -m pip install pywebio

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

Defaulting to user installation because normal site-packages is not writeable
Collecting pywebio
Downloading pywebio-1.3.3.tar.gz (326 kB)
|████████████████████████████████| 326 kB 656 kB/s
Requirement already satisfied: tornado>=5.0 in c:\users\user_\appdata\roaming\python\python38\site-packages (from pywebio) (6.1)
Collecting user-agents
Downloading user_agents-2.2.0-py3-none-any.whl (9.6 kB)
Collecting ua-parser>=0.10.0
Downloading ua_parser-0.10.0-py2.py3-none-any.whl (35 kB)
Building wheels for collected packages: pywebio
Building wheel for pywebio (setup.py) ... done
Created wheel for pywebio: filename=pywebio-1.3.3-py3-none-any.whl size=335375 sha256=6754fa19180dc8dcbb107553f65279e3a9502108aae48261fafdfe17451ea502
Stored in directory: c:\users\user_\appdata\local\pip\cache\wheelsbddfb7e5417af272576d4541cea927e0d42cfb994e5eff9ff93
Successfully built pywebio
Installing collected packages: ua-parser, user-agents, pywebio
Successfully installed pywebio-1.3.3 ua-parser-0.10.0 user-agents-2.2.0

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

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

コメント

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