Installing Enthought Canopy Python

Enthought Canopy is a Python distribution that bundles the Python programming language and over 300 Python packages for scientific computing, some of which provide spatial analysis and/or GIS functionality.

  1. Request an academic account on the Enthought website.
  2. Once you have an academic account, login to the Enthought website and download the 64-bit version of Canopy.
  3. Installing Enthought Canopy

(RECOMMENDED) Install a Good Text Editor

A good text editor will make coding easier and more fun.

(OPTIONAL) Using ArcGIS with Canopy Python

When you install ArcGIS, you also get a version of Python, a limited set of open source packages and ESRI's packages (e.g., arcpy). What you have done so far will not impact ArcGIS or the Python that comes with ArcGIS (at least as far as I've tested). The following steps allow you to access ArcGIS's python packages AND Canopy's large set of open source packages in the same Python environment.

32-bit vs. 64-bit: Your versions of Canopy and ArcGIS must match. If the setup below doesn't work it is probably due to mismatched architecture. In general, 64-bit is preferred to 32-bit since it can hold much more data in memory, but the python scripts inside your version of ArcGIS may not be 64-bit.

  1. Figure out the path to the ArcGIS installation on your machine. It's probably on C:\ or some directory of programs on C:\. We will call this C:\path\to\ArcGIS\.
  2. Figure out the path to the Enthought installation on your machine. It's probably in your user space on C:\. We will call this C:\Users\your_name\AppData\Local\Enthought\. If you do not see the AppData directory on your machine, then it is probably hidden; follow this link to unhide it.
  3. Open a text editor (e.g., Notepad or Notepad++), and enter the following lines (you will replace \path\to\ with the path on your machine):
  4. # .pth file for arcpy
    C:\path\to\ArcGIS\Desktop10.1\bin
    C:\path\to\ArcGIS\Desktop10.1\arcpy
    C:\path\to\ArcGIS\Desktop10.1\ArcToolbox\Scripts

  5. Save the content of the text editor as zzArcGIS.pth.
  6. Move zzArcGIS.pth to C:\Users\your_name\AppData\Local\Enthought\Canopy32\User\lib\site-packages.
You should now be able to import arcpy into you Canopy Python environment. If you want more details on this process or want to import Canopy packages when you're in ArcGIS Python, click here.

Hosted on GitHub Pages — Theme by orderedlist