

Set PYTHONPATH= %PYTHONPATH% %OSGEO4W_ROOT%\apps\Python27\Lib\site-packages Set PYTHONPATH= %PYTHONPATH% %OSGEO4W_ROOT%\apps\qgis\python Path %PATH% ” %OSGEO4W_ROOT%\apps\Python27\Scripts\” Path %PATH% %OSGEO4W_ROOT%\apps\grass\grass-6.4.2\lib Set GDAL_DRIVER_PATH= %OSGEO4W_ROOT%\bin\gdalplugins\1.9 Next, copy the python27.dll from C:\Program Files (x86)\Quantum GIS Lisboa\bin to c:\Windows\SysWOW64 (or \system32 for 32-bit machines)įinally, create this batch file to start pyscripter with (note you may change the PROGRA~2 to PROGRA~1 for 32-bit machines.Ĭall “ %OSGEO4W_ROOT%“\apps\grass\grass-6.4.2\etc\env.bat Assuming you have installed QGIS in the default folder (C:\Program Files (x86)\Quantum GIS Lisboa for a 64bit machine), you can use this registry settings file (edit the file accordingly if using 32-bit Windows). So the first thing to do is to create the relevant registry entries for 2.7. One of the problems with the standalone installer is that it installs Python 2.7 but does not create any registry entries- which is what PyScripter mainly uses. Things may have been different if I used the OSeo4W installer which apparently sets the environment for you….but I can’t be sure.
#PYSCRIPTER 32 BIT VERISON WINDOWS#
One thing to note here is that I installed QGIS 1.8 using the standalone windows installer. Below I am outlining the steps I took to solve it. One would have thought that since PyScripter allows you to work with different versions of Python this wouldn’t be such a big deal. Now, arcpy is using Python 2.6 whereas QGIS (I was using the latest 1.8 Lisboa version) is using 2.7. I could not, for the life of me, get this initial statement to work in PyScripter although it was working fine in the QGIS Python console: All was well until I decided to explore PyQGIS, QGIS’ scripting language. For those of you who haven’t tried it… well, you don’t know what you are missing! I was using PyScripter quite happily with ArcGIS 10 and arcpy without ever having to tweak anything in PyScripter.
#PYSCRIPTER 32 BIT VERISON HOW TO#
To anyone else whos also wondering how to switch, you just need the 32 bit version of python 3.4 installed, instead of the x86-64 hybrid. As many of you may already know, PyScripter is an excellent IDE for Python. 32-bit PyScripter v2.6.0 beta appears to work perfectly on Win 7 64 with Python 2.7.8.
