kazuuu.net

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

PythonにDropbox(ドロップボックス)API用ライブラリ(モジュール)をインストールする

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

PythonにDropbox(ドロップボックス)API用ライブラリ(モジュール)をインストールする(Windows10)

■Python

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

■Dropboxをインストール

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

pip install dropbox

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

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

py -3.8 -m pip install dropbox

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

Collecting dropbox

Downloading dropbox-11.0.0-py3-none-any.whl (551 kB)

|████████████████████████████████| 551 kB 1.1 MB/s

Requirement already satisfied: requests>=2.16.2 in c:\pg\python38\lib\site-packages (from dropbox) (2.25.0)

Requirement already satisfied: six>=1.12.0 in c:\pg\python38\lib\site-packages (from dropbox) (1.15.0)

Collecting stone>=2.*

Downloading stone-3.2.1-py3-none-any.whl (160 kB)

|████████████████████████████████| 160 kB 2.2 MB/s

Requirement already satisfied: idna<3,>=2.5 in c:\pg\python38\lib\site-packages (from requests>=2.16.2->dropbox) (2.10)

Requirement already satisfied: urllib3<1.27,>=1.21.1 in c:\pg\python38\lib\site-packages (from requests>=2.16.2->dropbox) (1.26.2)

Requirement already satisfied: certifi>=2017.4.17 in c:\pg\python38\lib\site-packages (from requests>=2.16.2->dropbox) (2020.11.8)

Requirement already satisfied: chardet<4,>=3.0.2 in c:\pg\python38\lib\site-packages (from requests>=2.16.2->dropbox) (3.0.4)

Collecting ply>=3.4

Downloading ply-3.11-py2.py3-none-any.whl (49 kB)

|████████████████████████████████| 49 kB 1.5 MB/s

Installing collected packages: ply, stone, dropbox

Successfully installed dropbox-11.0.0 ply-3.11 stone-3.2.1

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