错误RuntimeError: the sip module implements API v11.0 to v11.2 but the module requires API v12.0
来源:互联网 发布:天津鹏为软件 编辑:程序博客网 时间:2024/06/10 17:02
参考http://www.cnblogs.com/unicode/p/6063442.html
安装PyQt4.exe,直接运行
import sysfrom PyQt4 import QtGui
会报错:ImportError: DLL load failed: %1 不是有效的 Win32 应用程序。
后来百度要装一个sip程序,才能正常使用PyQt4,,,于是又去官网下载sip,但出现上一篇博客的问题,在上一篇博客已经解决,这里就不写了。
安装sip成功后,运行上面的两行程序,再次报错!
RuntimeError: the sip module implements API v11.0 to v11.2 but the module requires API v12.0
即sip的版本不一
用以下命令分别查询sip的版本
python的版本是sip 4.14.4,而在官网下的是sip 4.19.2
所以删除自己在官网上下载的sip 4.19.2,重新在官网上下载匹配的版本sip 4.14.4
官网:https://riverbankcomputing.com/software/sip/download
之后按照教程重新安装一遍sip
Windows下PyQt4的安装_百度经验
https://jingyan.baidu.com/article/f7ff0bfc16542a2e26bb132b.html
检测是否安装成功,运行以下程序
import sysfrom PyQt4 import QtGuiapp = QtGui.QApplication(sys.argv)widget = QtGui.QWidget()widget.resize(250, 150)widget.setWindowTitle('simple')widget.show()sys.exit(app.exec_())
运行成功!!!
PyQt4至此安装成功!!
4 0
- 错误RuntimeError: the sip module implements API v11.0 to v11.2 but the module requires API v12.0
- paip. sip module implements API v10.0 to v10.1 but the PyQt4.QtCore module requires API v9.2
- RuntimeError: module compiled against API version 0xa but this version of numpy is 0x9
- RuntimeError: module compiled against API version 0xb but this version of numpy is 0xa
- RuntimeError: module compiled against API version 0xa but this version of numpy is 0xb
- RuntimeError: module compiled against API version 0xb but this version of numpy is 0xa
- RuntimeError: module compiled against API version 0xb but this version of numpy is 0xa
- tensorflow RuntimeError: module compiled against API version 0xa but this version of numpy is 0x9问题
- The module ... was loaded but the call to DllRegisterServer failed with error code 0x80070005
- the module '*' was loaded but the call to DllRegisterServer failed with error 0x80004005
- MXnet: RuntimeError: module compiled against API version a but this version of numpy is 9
- Error: API mismatch: the NVIDIA kernel module has version 295.40, but this NVIDIA driver ...
- An Introduction to the JAIN SIP API
- [CasperJS] API--The casper module(译)
- Nginx编译安装错误error: the HTTP gzip module requires the zlib library
- ubuntu下安装nginx错误error: the HTTP rewrite module requires the PCRE library 解决方法
- ngingx安装错误 ./configure: error: the HTTP rewrite module requires the PCRE library.
- ngingx安装错误 ./configure: error: the HTTP rewrite module requires the PCRE library.
- WEB开发中需要了解的东西
- hicharts中treemap添加超链接
- CocoaPods 删除已导入项目的第三方库和移除项目中的CocoaPods
- H264 TS/ES
- 模拟循环链表
- 错误RuntimeError: the sip module implements API v11.0 to v11.2 but the module requires API v12.0
- 题目1445:How Many Tables
- js单纯判断滚动条方向
- URL转码解码
- ORA-01012: not logged on 解决办法
- java发送http的get、post请求2
- Java Bindings Metadata翻译
- Ancient Go
- atexit函数介绍