I\'ve been trying to setup my windows computer such that I can have a local postgreSQL with PostGIS extension. With this installed I hope to be able to create a project with
Just to follow up on the nice and detailed answer of Udi (cannot comment directly as my rep is under 50, it is the answer marked as the most useful);
After many hours I tried his offered solution which also did not work for me. I was getting the following error:
OSError: [WinError 193] %1 is not a valid Win32 application
But I stayed there and found out that although I'm running 64 python and operating system (for sure), it kept looking for 32 bit (OSGeo4W
) folder. What eventually let me pass was to copy contents of the OSGeo4W64
folder to the OSGeo4W
. Hope it will save you time.
One more note:
Be sure that you edit libgdal.py
file in your environment folder. It may exist in more than one place - your python folder and environment folder - if you edit the libgdal
in your python dir, it is not going to work.