包括的なHTTPクライアントライブラリ「httplib2」のインストールについて解説しています。
「httplib2(https://github.com/httplib2/httplib2)」は、Python用の小型で高速なHTTPクライアントライブラリで、持続的な接続、Google App Engineなどのサポートが特徴である。
■Python
今回のPythonのバージョンは、「3.8.5」を使用しています。(Windows10)(pythonランチャーでの確認)
■httplib2をインストールする
httplib2をインストールを行いますが、今回はpipを経由してインストールを行うので、まずWindowsのコマンドプロンプトを起動します。
pip install httplib2
起動後、上記のコマンドを入力し、Enterキーを押します。
なお、今回は、pythonランチャーを使用しており、Python Version 3.8.5にインストールを行うために、バージョンの切り替えを行います。
py -3.8 -m pip install httplib2
切り替えるために、上記のコマンドを入力し、Enterキーを押します。
Defaulting to user installation because normal site-packages is not writeable Collecting httplib2 Downloading httplib2-0.20.4-py3-none-any.whl (96 kB) ---------------------------------------- 96.6/96.6 kB 1.1 MB/s eta 0:00:00 Requirement already satisfied: pyparsing!=3.0.0,!=3.0.1,!=3.0.2,!=3.0.3,<4,>=2.4.2 in c:\users\user_\appdata\roaming\python\python38\site-packages (from httplib2) (3.0.9) Installing collected packages: httplib2 Successfully installed httplib2-0.20.4
Enterキーを押すと、インストールが開始され、上記のように「Successfully installed」と表示されます。これが表示されれば、httplib2が正常にインストールされたことになります。
なお、今回はhttplib2のバージョン0.20.4をインストールしました。
コメント