joechoj

Does anyone use both ArcGIS and Python(x,y)?

Discussion created by joechoj on May 30, 2013
Latest reply on Nov 3, 2014 by nmiller
Hi community,
I'm trying to get ArcGIS 10.1 and Python(x,y) to peacefully co-exist with a unified installation of Python. Surely someone else is using both these tools... right? Pointers would be much appreciated.

Here's where I've gotten to:
1. VERSION: Since ArcGIS 10.1 uses Python 2.7.2 (which contains NumPy 1.6.1), I went back to the pythonxy install mirrors and found version 2.7.2.0 of Python(x,y) which includes Python 2.7.2 and NumPy 1.6.1.

2. INSTALL: I crossed my fingers and just installed Python(x,y) after copying my original "C:\Python27\ArcGIS10.1\" folder to a safe location. It installs most of the files at "C:\Program Files (x86)\pythonxy\", and the Python files in "C:\Python27\". This is the same folder where my Arc install of Python lives, except Arc placed its version in the sub-folder "\ArcGIS10.1\". So to recap, I now have a "python.exe" and associated files in "C:\Python27\" as well as "C:\Python27\ArcGIS10.1\".

3. NEXT? Both Spyder and ArcGIS 10.1 seem to work so far but I'm guessing this won't last long. Two separate installs on the same machine seems like a bad move in principle. I wonder: Is it possible to change Arc's preferences to point to the version in the parent folder, and condense versions? I've gone through folder by folder and in almost every case the Python(x,y) install includes all the files that ArcGIS 10.1 Python does (and then some). The exception is that the Arc install sometimes includes '.pyc' and '.pyo' versions of some '.py' files. But I'm guessing this isn't a critical difference since both directories contain the actual '.py' file.)

4. Forgot to mention: I added "C:\Python27\ArcGIS10.0\" to the list of system paths, per the instructions in Method 2 at http://forums.arcgis.com/threads/34418-is-it-possible-to-install-other-python-distributions-on-top-of-the-arcgis. I really don't know what this does, just experimenting here... Please advise!

If anyone can offer further guidance on this, it would be much appreciated!!

(PS - I posted the same question at gis.stackexchange.com, so if interested in the answer check there too)

Outcomes