QtSql导入错误发生在Raspbian中。
当我在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'发布于 2018-03-09 09:37:05
eyllanesc帮助解决了这个问题。
sudo apt-get install python3-pyqt5.qtsqlhttps://stackoverflow.com/questions/49184880
复制相似问题