安装python官方的mysql库“mysql-connector-python”
$ echo https://cdn.mysql.com/Downloads/Connector-Python/mysql-connector-python-2.1.3.tar.gz >> requirements.txt
$ sudo -H pip install -r ./requirements.txt 本机必须得加-H... container里直接 pip install -r ./requirements.txt 就行。