zmaillard

Running ArcGIS 10.0 Under Virtualenv

Discussion created by zmaillard on Mar 22, 2011
Latest reply on Mar 22, 2011 by JScheirer-esristaff
I am working on a Python package that has a mixture of command line tools and ArcToolbox tools. For Python development it is really useful to use VirtualEnv, especially when working with installers. Is there a way to have either ArcMap or ArcCatalog recognize a current VirtualEnv session in Python, so that when a custom tools is executed it is using the VirtualEnv Python paths and packages instead of the default Python paths and packages at c:\Python26\ArcGIS10.0?

I tried creating a VirtualEnv session and launching ArcCatalog from the cmd prompt inside that session.  However, ArcCatalog does not recognize any of the packages I installed within that VirtualEnv session, nor does running sys.path from the ArcCatalog command prompt reflect any of the VirutalEnv directories.

Outcomes