Python 2.7 没有名为PyQt4的模块
我试着编译我的qgis插件,我有这个输出Python 2.7 没有名为PyQt4的模块,python-2.7,pyqt,qgis,Python 2.7,Pyqt,Qgis,我试着编译我的qgis插件,我有这个输出 C:\Users\Mateusz\.qgis2\python\plugins\Selector>pyuic4 -o selector_dialog_base.p y selector_dialog_base.ui Traceback (most recent call last): File "C:\Python27\Lib\site-packages\PyQt4\uic\pyuic.py", line 31, in <module>
C:\Users\Mateusz\.qgis2\python\plugins\Selector>pyuic4 -o selector_dialog_base.p
y selector_dialog_base.ui
Traceback (most recent call last):
File "C:\Python27\Lib\site-packages\PyQt4\uic\pyuic.py", line 31, in <module>
from PyQt4 import QtCore
ImportError: No module named PyQt4
我用的是python27 x64。
PyQt4-4.11.3-gpl-Py2.7-Qt4.8.6-x64
我将所有环境路径设置为PYTHONPATH,并将路径设置为PyQt。您甚至可以在我的PyQt4包中文件pyuic.py所在的输出中看到此路径。你知道我能做什么吗
我还重新安装了PyQt两次 我建议您使用OSGEO4W Shell如果您安装OSGEO4W包,图标在桌面上,然后从那里启动pyuic4命令