Python Qgis two times development __python

Source: Internet
Author: User
Environment Configuration Eclipse+pydev+python27 + pyqt4.8.6 + qgis2.6

Eclipse installation. Slightly

Pydev installation. Slightly

PYTHON27 installation. Slightly.

pyqt4.8.6 + qgis2.6 installation. I am using the OSGEO4W installation package, osgeo4w itself with qgis2.6 development components and pyqt4.8.6 development components, PYTHON27 will also be brought, python27 the best installation of their own. Note that after installing with OSGEO4W, do not install PYQT in a separate,

Precautions:

Qgis.core DLL not found: is caused by environment variable settings, but it is not possible to add environment variables directly in PATH, and you will find that there is no effect. The correct approach is to C:\OSGeo4W\bin add a bat file file to set your environment variables through a bat file and start the Eclipse.exe

Pydevqgis.bat:

@echo off
Call "%~dp0\o4w_env.bat"
@echo off
Path%osgeo4w_root%\apps\qgis\bin;%path%
Set Qgis_prefix_path=%osgeo4w_root:\=/%/apps/qgis
REM Set VSI cache to is used as buffer, #6448
Set Vsi_cache=true
Set vsi_cache_size=1000000
Set Qt_plugin_path=%osgeo4w_root%\apps\qgis\qtplugins;%o Sgeo4w_root%\apps\qt4\plugins
D:\andr_dev\eclipse\eclipse.exe

The last line of the bat file is the path to eclipse, replaced by your own, without changing the rest.

When you start Eclipse, double-click Pydevqgis.bat, and then you can go straight to the coding. Because the Qgis.core dll not found took me a long time to search Google, I almost gave up the way PYQT Qgis was developed. The solution to the problem is still there, unless you have not found the relevant success stories.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.