0
私はmariadbデータベースのサンプルデータベース接続を実行しようとしています。python3モジュールはどこですか
python3 sample.py
Traceback (most recent call last):
File "sample.py", line 3, in <module>
import mysql.connector as mariadb
ModuleNotFoundError: No module named 'mysql'
私はpython3-mysql.connectorをインストールしました。
sudo apt-get -y install python3-mysql.connector
Reading package lists... Done
Building dependency tree
Reading state information... Done
python3-mysql.connector is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.