File "/usr/local/python_3.6.4/lib/python3.6/site-packages/MySQLdb/connections.py", line 36
在python2.x中用mysqldb,但是在python3.x中已经不支持那个组件了。
取而代之的是:pymysql
pip3 uninstall MySQL-python
pip3 install PyMySQL
vi cmdb1_demo1/__init__.py
import pymysql
pymysql.install_as_MySQLdb()