November 2018
Beginner to intermediate
272 pages
5h 36m
English
To access qgis.core in a Python interpreter, we need to configure the paths to the Python libraries. At the start of this section, I recommended you use OSGeo4W to install QGIS. If you have done this, then the following script will work. If not, then you will need to review the paths in the following screenshot carefully.
Create a new file in a text editor and call it pyqgis.cmd. Save this in the save location as your QGIS installation (or wherever it is easiest to find it).
Now, type the following lines and then perform a save as follows:
@echo offSET OSGEO4W_ROOT=C:\OSGeo4W64call "%OSGEO4W_ROOT%"\bin\o4w_env.batcall "%OSGEO4W_ROOT%"\apps\grass\grass-7.4.2\etc\env.bat@echo off ...
Read now
Unlock full access