jtamir wrote:
> 
> Andrew Straw wrote:
>> Does that file .h exist at that location?
>>
> Yes, __multiarray_api.h is in
> ~/lib/python2.5/site-packages/numpy/core/include/numpy/ 
> I am installing with prefix set to home directory.
> 
> 
> 
> Andrew Straw wrote:
>> can you re-send the
>> output including the first error?
>>
> The full output is quite long - 1650 lines (attached)
> 
> 
>> $ python setup.py install --prefix=/home/jtamir > log
>> error: Command "gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2
>> -Wall -Wstrict-prototypes -fPIC -Isrc
>> -I/home/jtamir/lib/python2.5/site-packages/numpy/core/include
>> -I/home/jtamir/include/python2.5 -c src/_proj.c -o
>> build/temp.linux-i686-2.5/src/_proj.o" failed with exit status 1
>>  http://www.nabble.com/file/p22992540/log log 

> compile options: '-Isrc 
> -I/home/jtamir/lib/python2.5/site-packages/numpy/core/include 
> -I/home/jtamir/include/python2.5 -c'
> gcc: src/_proj.c
> src/_proj.c:4:20: error: Python.h: No such file or directory

That's the first error -- and it's quite diagnostic. gcc can't find
Python.h.

I see you are doing some slightly non-standard stuff with paths. From
your paths, it appears you have Python installed in
/home/jtamir/bin/python. If this is the case, you should try
"/home/jtamir/bin/python setup.py install" (without the
--prefix=/home/jtamir). That will let distutils attempt to do everything
normally. Otherwise, you'll have to figure out what Python.h isn't in
/home/jtamir/include/python2.5 if you want the above to work.

-- 
Andrew D. Straw, Ph.D.
California Institute of Technology
http://www.its.caltech.edu/~astraw/

------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to