MySQL Connector Pythonをインストールする(Windows10)

スポンサーリンク

MySQL Connector Pythonのインストールについて解説しています。(Windows10)

MySQL Connector Pythonは、Pythonプラットフォームおよび開発用の標準データベースドライバーです。

■Python

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

■MySQL Connector Pythonをインストールする

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

pip install mysql-connector-python

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

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

py -3.8 -m pip install mysql-connector-python

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

Collecting mysql-connector-python
Downloading mysql_connector_python-8.0.22-cp38-cp38-win_amd64.whl (842 kB)
|████████████████████████████████| 842 kB 1.3 MB/s
Requirement already satisfied: protobuf>=3.0.0 in c:\pg\python38\lib\site-packages (from mysql-connector-python) (3.14.0)
Requirement already satisfied: six>=1.9 in c:\pg\python38\lib\site-packages (from protobuf>=3.0.0->mysql-connector-python) (1.15.0)
Installing collected packages: mysql-connector-python
Successfully installed mysql-connector-python-8.0.22

 

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

コメント

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