我正在使用PyQT4设计器和Python2.5开发。当我尝试命令
from qgis.core import * 在python2.5中,我说错了
RuntimeError: PyQt4.QtCore模块是版本1,但是qgis.core模块需要版本1。
我安装了PyQt-Py2.5-x86-gpl-4.8.6-1.exe、python-2.5.msi和QGIS-OSGeo4W-1.7.2-659859c-Setup.exe。
有什么问题吗??Qgis_core.dll贴在哪里??
发布于 2012-01-20 09:32:05
因为它是qgis_core.dll,所以您正在处理windows。将env变量PYTHONHOME设置为指向qgis dll dir:
set PYTHONHOME=C:\Python25\Lib\site-packages;C:\PATH\TO\QGIS\PYTHONDLL;总比搬来搬去好。
https://stackoverflow.com/questions/8939047
复制相似问题