1,python安裝sqlclienthtml
yum install python36u python36u-devel yum install gcc mariadb-devel
pip3 install mysqlclient
參考連接:https://www.cnblogs.com/zhangqunshi/p/6646580.htmlpython
組件庫:https://www.lfd.uci.edu/~gohlke/pythonlibs/#mysql-pythonmysql
======================================================================sql
2,安裝報錯:spa
python讀取文件時提示"UnicodeDecodeError: 'gbk' codec can't decode byte 0x80 in position 205: illegal multibyte sequence"code
解決辦法1.htm
FILE_OBJECT= open('order.log','r', encoding='UTF-8')blog
或者:
FILE_OBJECT= open('order.log','rb')
================================================================================