Raspbian中出现QtSql导入错误
当我在python控制台中检查PyQt5导入时,它已被导入
仅发生QtSql导入错误
任何人都知道如何解决?
Python 3.5.3 (default, Jan 19 2017, 14:11:04)
[GCC 6.3.0 20170124] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from PyQt5.QtCore import Qt
>>> from PyQt5 import QtSql
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: cannot import name 'QtSql'
答案 0 :(得分:0)
它是由eyllanesc帮助解决的。
sudo apt-get install python3-pyqt5.qtsql