Touch 发表于 2020-4-24 11:52:05

Ubuntu下调用pyside2和mysql.connector出现段错误

import sys
from PySide2.QtWidgets import QApplication,QMessageBox
from PySide2.QtUiTools import QUiLoader
import mysql.connector
if __name__ == "__main__":
    # cnx = LinkToSQL()
    test = mysql.connector.connect(user = 'librarians',password = 'books',host = '127.0.0.1',database = 'library')


错误代码如上,如果注释掉pyside2的引用不会有问题,求助大佬.
找不到相关资料了:'(:'(:'(:'(:'(

admin 发表于 2020-4-26 16:44:59

检查一下pyside2 他的 方法调用
页: [1]
查看完整版本: Ubuntu下调用pyside2和mysql.connector出现段错误