Skip to content

Instantly share code, notes, and snippets.

@acgeospatial
Created June 4, 2020 09:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save acgeospatial/0d1da96aed53a7238db8736a459e7404 to your computer and use it in GitHub Desktop.
Save acgeospatial/0d1da96aed53a7238db8736a459e7404 to your computer and use it in GitHub Desktop.
pyqgis for QGIS 3.10 LTR installed via osgeo4w
@echo off
SET OSGEO4W_ROOT=C:\OSGeo4W64
call "%OSGEO4W_ROOT%"\bin\o4w_env.bat
call "%OSGEO4W_ROOT%"\apps\grass\grass78\etc\env.bat
@echo off
path %PATH%;%OSGEO4W_ROOT%\apps\qgis\bin
path %PATH%;%OSGEO4W_ROOT%\apps\grass\grass78\lib
path %PATH%;C:\OSGeo4W64\apps\Qt5\bin
path %PATH%;C:\OSGeo4W64\apps\Python37\Scripts
echo example print statement
set PYTHONPATH=%PYTHONPATH%;%OSGEO4W_ROOT%\apps\qgis\python
set PYTHONHOME=%OSGEO4W_ROOT%\apps\Python37
cmd.exe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment