Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm using ArcGIS 10 and would like to use various additional libraries that are not included in the delivered version of ArcGIS (esp. numpy and matplotlib). First I tried to install them manually as described here: http://matplotlib.sourceforge.net/users/installing.html

But because this seem not to work

I tried various different mailing lists and forums but so far it seems that this problem cannot be solved; see also my post here: matplotlib does not work in ArcGIS 10 and Eclipse (Python)

I'm wondering if it may work if I just install the distribution PYTHON(X,Y) which has all packages I need for development. (see http://www.pythonxy.com/)

Does anyone have experience and knows if I can just install another distribution simply on top of the existing version installed by ArcGIS 10 without loosing my ArcGIS Python functionalities. Maybe someone did even try this and installed the PYTHON(X,Y) distribution to use with ArcGIS already? What version would be best? The newest one runs with Python 2.6.6.

share|improve this question
    
Did you see this thread? gis.stackexchange.com/questions/8324/… – Dan Patterson Jul 9 '11 at 13:35
    
Thanks, but it seems that the Numpy 1.5.0. Version is a problem in any case - in another forum I got pretty much the same hint that ArcGIS just works with Numpy 1.3.0.. So it seems that this will not work either. I may have to look for another solution to get matplotlib run in ArcGIS – Werner Jul 9 '11 at 21:38
    
As an aside, we never did pursue a solution to the thread that Dan mentions above. The project I was working on got put on hold and the need to use arcpy on that server is no longer there. However, I am interested to hear if someone finds a workable solution for future reference. – Jason Jul 10 '11 at 14:15
    
@Werner I merged your two separate accounts so that people can recognize that "Werner" the replier and "Werner" the questioner are one and the same. Because that reply was really a pair of comments, I moved it as a comment after @Dan's reply. – whuber Jul 11 '11 at 16:31

The safest thing is to use the ArcGIS installation whenever you want to use arcpy. But, installing other libraries into the ArcGIS installation can get hairy.

One solution is to use virtualenv. This way, you install all of the libraries you want but it doesn't put anything in the ArcGIS installation. It creates a virtual Python environment into which you install everything you want. It can then create links to your Python installation to use those binaries and libraries.

You can certainly install other Python installations alongside the ArcGIS one. If you want to use arcpy from it, you should use the same version (though, you can be guaranteed that everything will work right). You'll have to be careful with your environment paths and variables. virtualenv can useful in this situation, too.

share|improve this answer

ArcGIS 10 depends on a specific version of NumPy, so it's a little dangerous to install (X,Y) on top of it. This page has a large selection of Python libraries with Windows intallers, it may be safer to just install the ones you need on an as-needed basis.

share|improve this answer
    
thanks for the tip, this is indeed a quite nice source I didn't know about. Unfortunatly the matplotlib version here doesn't work either. Even if I just run a simple script I always get the message: No module named pyplot Thats the reason why I thought to try something different. – Werner Jul 9 '11 at 21:05

This thread is double-posted on the ArcGis forum which may provide other information not contained here.

EDIT. apparently you are supposed to provide more detail on 4 year old questions. This was not the purpose of the post, it was to provide other people with information about duplications in seeking answers so they don't waste their time. So we will consider this thread dead and it will be removed and nothing will be lost. Best to all

share|improve this answer

We're looking for long answers that provide some explanation and context. Don't just give a one-line answer; explain why your answer is right, ideally with citations. Answers that don't include explanations may be removed.

    
Just a little... :) – V Stuart Foote Jul 10 '11 at 21:51
    
@Dan: Well actually its me that posted it at the ESRI forum as well. Unfortunatly I couldn't get further there as well. But I will keep you updated if I will find it out there. Until than I will still look in here in case someone will have a tip as well. @Hairy: Well this with Ecplise idea I got as well esp. cause I am editing my scripts in Eclipse. But this is another issue I posted somewhere else: eclipse.org/forums/index.php/m/691535/#msg_691535 sourceforge.net/projects/pydev/forums/forum/293649/topic/… Seems that my attempts to work with matplotlib were not really – Werner Jul 11 '11 at 15:36

Just install eclipse and use Arcpy there. Create any scripts you like, with any libraries on your system, then load the new scripts through the Python window; U se numpy and a lot of other libraries not installed with ArcGIS and this method works well for me.

Cheers

share|improve this answer
    
Well I git the idea with Ecplise as well esp. cause I am editing my scripts in Eclipse. But this is another issue I posted somewhere else: eclipse.org/forums/index.php/m/691535/#msg_691535 sourceforge.net/projects/pydev/forums/forum/293649/topic/… Seems that my attempts to work with matplotlib were not really successful so far. – Werner Jul 12 '11 at 12:20

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.