【Python】WiFiネットワークの検出,接続などができるライブラリ「wifi」のインストール

スポンサーリンク

【Python】WiFiネットワークの検出,接続などができるライブラリ「wifi」のインストールについて解説しています。

「wifi(https://wifi.readthedocs.io/en/latest/)」は、wifiネットワークの検出、ネットワークへの接続、構成の保存などができます。

■Python

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

■wifiをインストールする

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

pip install wifi

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

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

py -3.8 -m pip install wifi

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

Defaulting to user installation because normal site-packages is not writeable
Collecting wifi
Downloading wifi-0.3.8.tar.gz (11 kB)
Preparing metadata (setup.py) ... done
Requirement already satisfied: setuptools in c:\users\user_\appdata\roaming\python\python38\site-packages (from wifi) (59.8.0)
Collecting pbkdf2
Downloading pbkdf2-1.3.tar.gz (6.4 kB)
Preparing metadata (setup.py) ... done
Building wheels for collected packages: wifi, pbkdf2
Building wheel for wifi (setup.py) ... done
Created wheel for wifi: filename=wifi-0.3.8-py3-none-any.whl size=12493 sha256=f7967a84e7915cc2cd463ad2344d3a350e0737cad787035f867432313c2be782
Stored in directory: c:\users\user_\appdata\local\pip\cache\wheels\f7\d1\ec\c5069e5e7042fc0b4cc1e8291a2ca2d030c9f2a7eb4143bcec
Building wheel for pbkdf2 (setup.py) ... done
Created wheel for pbkdf2: filename=pbkdf2-1.3-py3-none-any.whl size=5105 sha256=50874a2d7e2f0ad2acf3c71b21052ff5a6a1ee1427b9a2907a858b08c891b2df
Stored in directory: c:\users\user_\appdata\local\pip\cache\wheelsa\bc\b54fdb7fc125e4d3d25b92eb8365b87c8b652a7096fcdcc16e
Successfully built wifi pbkdf2
Installing collected packages: pbkdf2, wifi
Successfully installed pbkdf2-1.3 wifi-0.3.8

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

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

コメント

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