ぶろぐめんどくさい

技術系の記事と漫画レビューが入り混じった混沌

bash on ubuntu on windows (buw) でpython3のためのmysql.connectorを導入するよ

次のコマンドを実行するだけ。

sudo apt-get install python3-mysql.connector

導入されていることを確認するには?

$ python3
Python 3.4.3 (default, Nov 17 2016, 01:08:31)
[GCC 4.8.4] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import mysql.connector
>>>