Error importing PyQt4.QtCore

醉酒当歌 提交于 2019-12-11 14:08:00

问题


I've been trying to get some GUI apps based on PyQt to run.

Somewhere in the PPython scripts is the following import:

from PyQt4.QtCore import *

This is the error that I keep getting consistently.

RuntimeError: the sip module implements API v8.0 to v8.1 but the PyQt4.QtCore module requires API v7.1

Why is this happening? How do I get sip to use the right API?

Thanks

来源:https://stackoverflow.com/questions/11142358/error-importing-pyqt4-qtcore

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!