[GIS] Using PyScripter with ArcGIS for Desktop

arcgis-10.2arcpypyscripterpython 3python-2.7

Can someone please let me know how I can set the PyScripter 2.5.3.0 x64 works with Python 2.7.3 which comes with ArcGIS
what I did was:

  1. I installed the ArcGIS 10.2
  2. I installed PyScripter 2.5.3.0 x64 which forced my to install Python 3.3
  3. I installed Python 3

Now I can't use the PyScripter for ArcGIS Python. I already add the ArcPy in to PyScripter IDE Options–> Special package as: os, wx, SciPy, ArcPy but still not working.

I also check the "desktop10.2.pth" at c:\python27\ArcGIS10.2\Lib\site-packages which looks like:

C:\Program Files (x86)\ArcGIS\Desktop10.2\bin
C:\Program Files (x86)\ArcGIS\Desktop10.2\arcpy
C:\Program Files (x86)\ArcGIS\Desktop10.2\ArcToolbox\Scripts

Can you please let me know how I can fix this issue?

Best Answer

First make sure you have the 32 bit PyScripter installed, not the 64 bit. Then in Tools -> Python Path make sure you have PyScripter pointing to the following paths:

C:\Program Files (x86)\PyScripter\Lib\rpyc.zip
C:\Windows\system32\python27.zip
C:\Python27\ArcGIS10.2\DLLs
C:\Python27\ArcGIS10.2\lib
C:\Python27\ArcGIS10.2\lib\plat-win
C:\Python27\ArcGIS10.2\lib\lib-tk
C:\Python27\ArcGIS10.2
C:\Python27\ArcGIS10.2\lib\site-packages
C:\Program Files (x86)\ArcGIS\Desktop10.2\bin
C:\Program Files (x86)\ArcGIS\Desktop10.2\arcpy
C:\Program Files (x86)\ArcGIS\Desktop10.2\ArcToolbox\Scripts
C:\Python27\ArcGIS10.2\lib\site-packages\win32
C:\Python27\ArcGIS10.2\lib\site-packages\win32\lib
C:\Python27\ArcGIS10.2\lib\site-packages\Pythonwin
Related Question