NUMPY Installation Win7 Intel MKL

2014-12-10 Thread wolosonovich
Hello!

Hopefully some of you can help me out. I am having the hardest time installing 
Numpy using the Intel MKL library. I've read the Intel article on their site, 
but it doesn't specifically address Windows, so I suspect the directions get me 
close, but when it comes to this sort of thing, everything has to be correct. I 
can't find anything elsewhere on the net either specifically for Windows 7 and 
MKL. Any help would be appreciated. Thanks!

-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Python(x,y) interferes with earlier Numpy installation

2014-02-13 Thread Martin Schöön
Den 2014-02-13 skrev beliav...@aol.com :
> I fixed the problem by reinstalling Numpy.

Good.

Just one note since I happened to look into updating Python(x,y)
at work today and stumbled on this: The Python(x,y) guys
recommend that one removes other Python installations prior to
installing Python(x,y) or there may be interference.

/Martin
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Python(x,y) interferes with earlier Numpy installation

2014-02-13 Thread beliavsky
I fixed the problem by reinstalling Numpy.
-- 
https://mail.python.org/mailman/listinfo/python-list


Python(x,y) interferes with earlier Numpy installation

2014-02-13 Thread beliavsky
I am running Python 2.7.5 on Windows 7 and installed Numpy, which worked.
Then I installed Python(x,y) from a file Python(x,y)-2.7.5.2.exe, and now 
running
the script

from numpy import array, size, shape, min, max, sum
a = array([1, 2, 3])
print shape(a)

gives the error messages

Traceback (most recent call last):
  File "x.py", line 1, in 
from numpy import array, size, shape, min, max, sum
  File "c:\python27\lib\site-packages\numpy\__init__.py", line 153, in 
from . import add_newdocs
  File "c:\python27\lib\site-packages\numpy\add_newdocs.py", line 13, in 

from numpy.lib import add_newdoc
  File "c:\python27\lib\site-packages\numpy\lib\__init__.py", line 18, in 

from .polynomial import *
  File "c:\python27\lib\site-packages\numpy\lib\polynomial.py", line 19, in 

from numpy.linalg import eigvals, lstsq, inv
  File "c:\python27\lib\site-packages\numpy\linalg\__init__.py", line 50, in 

from .linalg import *
  File "c:\python27\lib\site-packages\numpy\linalg\linalg.py", line 29, in 

from numpy.linalg import lapack_lite, _umath_linalg
ImportError: DLL load failed: The specified path is invalid.

How can I get Numpy working again? Thanks.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: numpy installation

2010-07-25 Thread David Cournapeau
Hi Jia,

On Sun, Jul 25, 2010 at 12:01 PM, Jia Hu  wrote:
> Hello:
>
> I tried to install numpy 1.4.1 from source under ubuntu following
> instruction at http://docs.scipy.org/doc/numpy/user/install.html
> I type "" python setup.py build –help-fcompiler ""  and it says gnu95 is
> found. Then I run ""python setup.py build –fcompiler=gnu95"". There is
> error.

Please state the full error. Saying that there is an error is
generally unhelpful.

Also, you are more likely to receive good information on the numpy ML:

http://www.scipy.org/Mailing_Lists

David
-- 
http://mail.python.org/mailman/listinfo/python-list


numpy installation

2010-07-24 Thread Jia Hu
Hello:

I tried to install numpy 1.4.1 from source under ubuntu following
instruction at http://docs.scipy.org/doc/numpy/user/install.html
I type "" python setup.py build –help-fcompiler ""  and it says gnu95 is
found. Then I run ""python setup.py build –fcompiler=gnu95"". There is
error.

Does anyone know how to fix it??

Thank you.
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: NumPy installation won't import correctly

2009-12-06 Thread Alex
On Dec 1, 7:04 pm, Ethos  wrote:
> On Dec 1, 6:37 pm, David Cournapeau  wrote:
>
> > On Wed, Dec 2, 2009 at 11:03 AM, Ethos  wrote:
>
> > > I reinstallednumpy, from sourceforge, even though I had already
> > > installed the latest version. Same business. 2.5 imports fine, 2.6
> > > doesn't.
>
> > > Here's the output of the commands you gave me.
>
> > Which exact version of mac os x are you using ? (the output of sw_vers
> > -productVersion
> >  would be fine).
>
> > David
>
> ProductName:    Mac OS X
> ProductVersion: 10.5.8
> BuildVersion:   9L30
>
> Kevin

I am also trying to install numpy 1.4 and observing exactly the same
symptoms as Kevin (unsurprisingly, since it's a very similar
installation: BuildVersion of 10.5.8 is 9L31a, otherwise identical).
I can also reproduce the problem with the 2.5 version of the 1.4 rc1
numpy DMG (with macpython 2.5.4 from python.org -- it refuses to
install using Apple's own 2.5.1).  Is there any known-to-work way to
install numpy 1.4 on Mac OS X 10.5.8, and Python either 2.5 or 2.6?
Guess next I'll try building from sources...


Alex
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: NumPy installation won't import correctly

2009-12-01 Thread Ethos
On Dec 1, 6:37 pm, David Cournapeau  wrote:
> On Wed, Dec 2, 2009 at 11:03 AM, Ethos  wrote:
>
> > I reinstalled numpy, from sourceforge, even though I had already
> > installed the latest version. Same business. 2.5 imports fine, 2.6
> > doesn't.
>
> > Here's the output of the commands you gave me.
>
> Which exact version of mac os x are you using ? (the output of sw_vers
> -productVersion
>  would be fine).
>
> David

ProductName:Mac OS X
ProductVersion: 10.5.8
BuildVersion:   9L30

Kevin
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: NumPy installation won't import correctly

2009-12-01 Thread David Cournapeau
On Wed, Dec 2, 2009 at 11:03 AM, Ethos  wrote:

>
> I reinstalled numpy, from sourceforge, even though I had already
> installed the latest version. Same business. 2.5 imports fine, 2.6
> doesn't.
>
> Here's the output of the commands you gave me.

Which exact version of mac os x are you using ? (the output of sw_vers
-productVersion
 would be fine).

David
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: NumPy installation won't import correctly

2009-12-01 Thread Ethos
On Dec 1, 3:33 am, "Diez B. Roggisch"  wrote:
> Ethos wrote:
> > I installed NumPy for python 2.6 on my leopard macbook, using the
> > nifty mac installer they now provide. I have the 2.6 official python
> > distro installed on my computer, in addition to the 2.5 that is native
> > on the mac. When I went to test out the installation, with 2.6, it
> > gave me this:
>
>  import numpy
> > Traceback (most recent call last):
> >   File "", line 1, in 
> >   File "/Library/Frameworks/Python.framework/Versions/2.6/lib/
> > python2.6/site-packages/numpy/__init__.py", line 132, in 
> >     import add_newdocs
> >   File "/Library/Frameworks/Python.framework/Versions/2.6/lib/
> > python2.6/site-packages/numpy/add_newdocs.py", line 9, in 
> >     from lib import add_newdoc
> >   File "/Library/Frameworks/Python.framework/Versions/2.6/lib/
> > python2.6/site-packages/numpy/lib/__init__.py", line 4, in 
> >     from type_check import *
> >   File "/Library/Frameworks/Python.framework/Versions/2.6/lib/
> > python2.6/site-packages/numpy/lib/type_check.py", line 8, in 
> >     import numpy.core.numeric as _nx
> >   File "/Library/Frameworks/Python.framework/Versions/2.6/lib/
> > python2.6/site-packages/numpy/core/__init__.py", line 5, in 
> >     import multiarray
> > ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.6/
> > lib/python2.6/site-packages/numpy/core/multiarray.so, 2): no suitable
> > image found.  Did find:
> > /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-
> > packages/numpy/core/multiarray.so: unknown required load command
> > 0x8022
>
> > The file that it claims it can't find a suitable image for does in
> > fact exist in that directory. I'm stumped.
>
> > Funny thing is, when I imported it using python2.5, it worked just
> > fine. numpy.test(1,10) ran without a hitch.
>
> Looks like a binary format issue to me. What does
>
> file 
> /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/multiarray.so
>
> give you, and how does it compare to
>
> file /Library/Frameworks/Python.framework/Versions/2.6/bin/python
>
> Maybe you need to strip the binaries to your native arch, using lipo.
>
> Diez

I reinstalled numpy, from sourceforge, even though I had already
installed the latest version. Same business. 2.5 imports fine, 2.6
doesn't.

Here's the output of the commands you gave me.

d166-54-tercero-infill-a-1:~ kevin$ file /Library/Frameworks/
Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/
multiarray.so
/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-
packages/numpy/core/multiarray.so: Mach-O universal binary with 2
architectures
/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-
packages/numpy/core/multiarray.so (for architecture ppc7400):   Mach-O
bundle ppc
/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-
packages/numpy/core/multiarray.so (for architecture i386):  Mach-O
bundle i386
d166-54-tercero-infill-a-1:~ kevin$ file /Library/Frameworks/
Python.framework/Versions/2.6/bin/python
/Library/Frameworks/Python.framework/Versions/2.6/bin/python: Mach-O
universal binary with 2 architectures
/Library/Frameworks/Python.framework/Versions/2.6/bin/python (for
architecture ppc):  Mach-O executable ppc
/Library/Frameworks/Python.framework/Versions/2.6/bin/python (for
architecture i386): Mach-O executable i386

I don't know if this helps. Thanks for the help everyone.

Kevin
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: NumPy installation won't import correctly

2009-12-01 Thread Günther Dietrich
Ethos  wrote:

>I installed NumPy for python 2.6 on my leopard macbook, using the
>nifty mac installer they now provide. I have the 2.6 official python
>distro installed on my computer, in addition to the 2.5 that is native
>on the mac. When I went to test out the installation, with 2.6, it
>gave me this:
>
 import numpy
>Traceback (most recent call last):
>  File "", line 1, in 
>  File "/Library/Frameworks/Python.framework/Versions/2.6/lib/
>python2.6/site-packages/numpy/__init__.py", line 132, in 
>import add_newdocs
>  File "/Library/Frameworks/Python.framework/Versions/2.6/lib/
>python2.6/site-packages/numpy/add_newdocs.py", line 9, in 
>from lib import add_newdoc
>  File "/Library/Frameworks/Python.framework/Versions/2.6/lib/
>python2.6/site-packages/numpy/lib/__init__.py", line 4, in 
>from type_check import *
>  File "/Library/Frameworks/Python.framework/Versions/2.6/lib/
>python2.6/site-packages/numpy/lib/type_check.py", line 8, in 
>import numpy.core.numeric as _nx
>  File "/Library/Frameworks/Python.framework/Versions/2.6/lib/
>python2.6/site-packages/numpy/core/__init__.py", line 5, in 
>import multiarray
>ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.6/
>lib/python2.6/site-packages/numpy/core/multiarray.so, 2): no suitable
>image found.  Did find:
>   /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-
>packages/numpy/core/multiarray.so: unknown required load command
>0x8022

I had the same problem when I tried to use the MacPorts installation of 
python3 within blender2.5alpha0 (I pointed the PYTHONPATH to the 
respective MacPorts python3 folder). I figured out, that the blender 
binary is a 64bit one, but the libraries of the MacPorts python3 are 
32bit ones and these two don't fit together.

Then I found out, that -- as opposed to blender 2.4x -- blender 2.5 
comes with all the standard python library bundled. So I'm fine with the 
pure blender 2.5 for the testing.



Best regards,

Günther
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: NumPy installation won't import correctly

2009-12-01 Thread David Cournapeau
On Tue, Dec 1, 2009 at 7:47 PM, Ethos  wrote:

> ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.6/
> lib/python2.6/site-packages/numpy/core/multiarray.so, 2): no suitable
> image found.  Did find:
>        /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-
> packages/numpy/core/multiarray.so: unknown required load command
> 0x8022

I have never seen this error, but it seems pretty common (for other
software, even unrelated to pyhon), from a quick google search.

We have just released the first RC for numpy 1.4.0. Could you check
whether you still see the problem with it ?

Note that numpy questions are more likely to be answered on the numpy
Mailing List,

cheers,

David
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: NumPy installation won't import correctly

2009-12-01 Thread Diez B. Roggisch
Ethos wrote:

> I installed NumPy for python 2.6 on my leopard macbook, using the
> nifty mac installer they now provide. I have the 2.6 official python
> distro installed on my computer, in addition to the 2.5 that is native
> on the mac. When I went to test out the installation, with 2.6, it
> gave me this:
> 
 import numpy
> Traceback (most recent call last):
>   File "", line 1, in 
>   File "/Library/Frameworks/Python.framework/Versions/2.6/lib/
> python2.6/site-packages/numpy/__init__.py", line 132, in 
> import add_newdocs
>   File "/Library/Frameworks/Python.framework/Versions/2.6/lib/
> python2.6/site-packages/numpy/add_newdocs.py", line 9, in 
> from lib import add_newdoc
>   File "/Library/Frameworks/Python.framework/Versions/2.6/lib/
> python2.6/site-packages/numpy/lib/__init__.py", line 4, in 
> from type_check import *
>   File "/Library/Frameworks/Python.framework/Versions/2.6/lib/
> python2.6/site-packages/numpy/lib/type_check.py", line 8, in 
> import numpy.core.numeric as _nx
>   File "/Library/Frameworks/Python.framework/Versions/2.6/lib/
> python2.6/site-packages/numpy/core/__init__.py", line 5, in 
> import multiarray
> ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.6/
> lib/python2.6/site-packages/numpy/core/multiarray.so, 2): no suitable
> image found.  Did find:
> /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-
> packages/numpy/core/multiarray.so: unknown required load command
> 0x8022
> 
> The file that it claims it can't find a suitable image for does in
> fact exist in that directory. I'm stumped.
> 
> Funny thing is, when I imported it using python2.5, it worked just
> fine. numpy.test(1,10) ran without a hitch.

Looks like a binary format issue to me. What does 


file 
/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/multiarray.so

give you, and how does it compare to 

file /Library/Frameworks/Python.framework/Versions/2.6/bin/python

Maybe you need to strip the binaries to your native arch, using lipo.

Diez
-- 
http://mail.python.org/mailman/listinfo/python-list


NumPy installation won't import correctly

2009-12-01 Thread Ethos
I installed NumPy for python 2.6 on my leopard macbook, using the
nifty mac installer they now provide. I have the 2.6 official python
distro installed on my computer, in addition to the 2.5 that is native
on the mac. When I went to test out the installation, with 2.6, it
gave me this:

>>> import numpy
Traceback (most recent call last):
  File "", line 1, in 
  File "/Library/Frameworks/Python.framework/Versions/2.6/lib/
python2.6/site-packages/numpy/__init__.py", line 132, in 
import add_newdocs
  File "/Library/Frameworks/Python.framework/Versions/2.6/lib/
python2.6/site-packages/numpy/add_newdocs.py", line 9, in 
from lib import add_newdoc
  File "/Library/Frameworks/Python.framework/Versions/2.6/lib/
python2.6/site-packages/numpy/lib/__init__.py", line 4, in 
from type_check import *
  File "/Library/Frameworks/Python.framework/Versions/2.6/lib/
python2.6/site-packages/numpy/lib/type_check.py", line 8, in 
import numpy.core.numeric as _nx
  File "/Library/Frameworks/Python.framework/Versions/2.6/lib/
python2.6/site-packages/numpy/core/__init__.py", line 5, in 
import multiarray
ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.6/
lib/python2.6/site-packages/numpy/core/multiarray.so, 2): no suitable
image found.  Did find:
/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-
packages/numpy/core/multiarray.so: unknown required load command
0x8022

The file that it claims it can't find a suitable image for does in
fact exist in that directory. I'm stumped.

Funny thing is, when I imported it using python2.5, it worked just
fine. numpy.test(1,10) ran without a hitch.

Thanks for the help. Please redirect me if this question belongs
elsewhere.
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: matplotlib and numpy installation

2006-05-27 Thread Travis E. Oliphant
cesco wrote:
> Hi,
> 
> I wanted to install python, numpy and matplotlib on Linux Ubuntu.
> I installed python with the following commands
> ./configure --enable-unicode=ucs4
> [snip]
> running build_ext
> building 'matplotlib.backends._ns_backend_agg' extension
> gcc options: '-pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall
> -Wstrict-prot\
> otypes -fPIC'
> compile options:
> '-I/usr/local/lib/python2.4/site-packages/numpy/core/include -\
> I/usr/include -I. -Isrc -Iswig -Iagg23/include -I. -I/usr/include -I.
> -I/usr/lo\
> cal/lib/python2.4/site-packages/numpy/core/include/freetype2
> -I/usr/include/fre\
> etype2 -I./freetype2 -Isrc/freetype2 -Iswig/freetype2
> -Iagg23/include/freetype2\
>  -I./freetype2 -I/usr/include/freetype2 -I./freetype2
> -I/usr/local/include/pyth\
> on2.4 -c'
> extra options: '-DSCIPY=1'
> gcc: src/_image.cpp
> src/_image.cpp:5:17: png.h: No such file or directory

This is the source of the remaining errors

On my system the "png.h" file comes from a libpng3-devel rpm

Perhaps you need to use apt-get to obtain the development package for png.

-Travis



-- 
http://mail.python.org/mailman/listinfo/python-list


matplotlib and numpy installation

2006-05-27 Thread cesco
Hi,

I wanted to install python, numpy and matplotlib on Linux Ubuntu.
I installed python with the following commands
./configure --enable-unicode=ucs4
make
make install
and then I installed numpy running
python setup.py install
Finally I came to matplotlib, that for the installation requires the
commands
python setup.py build
python setup.py install
but when I run the first (python setup.py build) I got the following
output that I copied partially below. What am I doing wrong? Can anyone
help?
I had previously another version of python located in usr/bin while the
current is in usr/local/bin. I guess I could remove the previous by the
deleting the relative folder and now if I run the command 'which
python' it actually says 'usr/local/bin/python' so I hope I done it
correctly. If not, how can I uninstall any previous version of python?
Do you think that somehow the error I get is caused by an unclean
removal of that previous version?

Thanks and regards
Francesco

Here follows the output:
---

GTK requires pygtk
TKAgg requires TkInter
GTKAgg requires pygtk
running build
running build_py
running build_ext
building 'matplotlib.backends._ns_backend_agg' extension
gcc options: '-pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall
-Wstrict-prot\
otypes -fPIC'
compile options:
'-I/usr/local/lib/python2.4/site-packages/numpy/core/include -\
I/usr/include -I. -Isrc -Iswig -Iagg23/include -I. -I/usr/include -I.
-I/usr/lo\
cal/lib/python2.4/site-packages/numpy/core/include/freetype2
-I/usr/include/fre\
etype2 -I./freetype2 -Isrc/freetype2 -Iswig/freetype2
-Iagg23/include/freetype2\
 -I./freetype2 -I/usr/include/freetype2 -I./freetype2
-I/usr/local/include/pyth\
on2.4 -c'
extra options: '-DSCIPY=1'
gcc: src/_image.cpp
src/_image.cpp:5:17: png.h: No such file or directory
In file included from /usr/local/include/python2.4/Python.h:8,
 from src/_image.cpp:7:
/usr/local/include/python2.4/pyconfig.h:835:1: warning:
"_POSIX_C_SOURCE" redef\
ined
In file included from
/usr/include/c++/3.3/i486-linux/bits/os_defines.h:39,
 from
/usr/include/c++/3.3/i486-linux/bits/c++config.h:35,
 from /usr/include/c++/3.3/iostream:44,
 from src/_image.cpp:1:
/usr/include/features.h:131:1: warning: this is the location of the
previous de\
finition
src/_image.cpp: In member function `Py::Object Image::write_png(const
   Py::Tuple&)':
src/_image.cpp:626: error: `png_structp' undeclared (first use this
function)
src/_image.cpp:626: error: (Each undeclared identifier is reported only
once
   for each function it appears in.)
src/_image.cpp:626: error: parse error before `;' token
src/_image.cpp:627: error: `png_infop' undeclared (first use this
function)
src/_image.cpp:628: error: aggregate `png_color_8_struct sig_bit' has
   incomplete type and cannot be defined
src/_image.cpp:629: error: `png_uint_32' undeclared (first use this
function)
src/_image.cpp:629: error: parse error before `=' token
src/_image.cpp:632: error: `png_bytep' undeclared (first use this
function)
src/_image.cpp:632: error: `row_pointers' undeclared (first use this
function)
src/_image.cpp:632: error: parse error before `[' token
src/_image.cpp:634: error: `row' undeclared (first use this function)
src/_image.cpp:645: error: `png_ptr' undeclared (first use this
function)
src/_image.cpp:645: error: `PNG_LIBPNG_VER_STRING' undeclared (first
use this
   function)
src/_image.cpp:645: error: `png_create_write_struct' undeclared (first
use this\

   function)
src/_image.cpp:653: error: `info_ptr' undeclared (first use this
function)
src/_image.cpp:653: error: `png_create_info_struct' undeclared (first
use this
   function)
src/_image.cpp:657: error: `png_destroy_write_struct' undeclared (first
use
   this function)
src/_image.cpp:662: error: `setjmp' undeclared (first use this
function)
src/_image.cpp:670: error: `png_init_io' undeclared (first use this
function)
src/_image.cpp:673: error: `PNG_COLOR_TYPE_RGB_ALPHA' undeclared (first
use
   this function)
src/_image.cpp:673: error: `PNG_INTERLACE_NONE' undeclared (first use
this
   function)
src/_image.cpp:674: error: `PNG_COMPRESSION_TYPE_BASE' undeclared
(first use
   this function)
...

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: where is python.h? / NumPy installation

2005-04-12 Thread martino
> 
> It *should* be
> /System/Library/Frameworks/Python.framework/Versions/2.3/include/python2.3/Python.h
> 
> In the meantime, you can snag a pre-built Numeric from
> 
>http://pythonmac.org/packages/

It was not there to start with and by trying to install xcode from
apple's developpers site, I ended up screwing the pre-installed
version of python. So, I reinstalled a new build of python (2.4.1)
found on python.org (which put the coveted Python.h at the right place
and also the IDE) and then the pre-built of Numeric you just
mentionned and it now seems to work, so thanks a lot for the tip.

The original problem must stem from my installing panther over jaguar
in my machine, something must have gone wrong then.

Thanks again

Martino
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: where is python.h? / NumPy installation

2005-04-11 Thread Robert Kern
martino wrote:
Hi, I am trying to install NumPy (v23.8) onder Macosx (panther
version). Python (v2.3) is bundled into panther and I installed the
IDE on top of that. After having untarred the source distribution in
the desktop directory and typed

python setup.py install

as recommended in the attached documentation, I get:
running install
running build
running build_py
running build_ext
building '_numpy' extension
gcc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp
-mno-fused-madd -fno-common -dynamic -DNDEBUG -g -O3 -Wall
-Wstrict-prototypes -I/System/Library/Frameworks/vecLib.framework/Headers
-IInclude -IPackages/FFT/Include -IPackages/RNG/Include
-I/System/Library/Frameworks/Python.framework/Versions/2.3/include/python2.3
-c Src/arrayobject.c -o
build/temp.darwin-7.8.0-Power_Macintosh-2.3/Src/arrayobject.o
Src/arrayobject.c:18:20: Python.h: No such file or directory
In file included from Src/arrayobject.c:26:
Include/Numeric/arrayobject.h:24: parse error before '*' token
Include/Numeric/arrayobject.h:24: warning: type defaults to `int' in
declaration of `PyArray_GetItemFunc'
Include/Numeric/arrayobject.h:24: warning: data definition has no type
or storage class
Include/Numeric/arrayobject.h:25: parse error before '*' token
Include/Numeric/arrayobject.h:25: warning: function declaration isn't
a prototype
+ zilions of error messages that probably stem from this first error
(i.e. not finding this Python.h file). Now I have looked everywhere
else on the hard drive and Python.h is nowhere to be seen. Should I
install something else before attempting to install NumPy (but what?).
Thanks a lot.
It *should* be
/System/Library/Frameworks/Python.framework/Versions/2.3/include/python2.3/Python.h
In the meantime, you can snag a pre-built Numeric from
  http://pythonmac.org/packages/
--
Robert Kern
[EMAIL PROTECTED]
"In the fields of hell where the grass grows high
 Are the graves of dreams allowed to die."
  -- Richard Harter
--
http://mail.python.org/mailman/listinfo/python-list


where is python.h? / NumPy installation

2005-04-11 Thread martino
Hi, I am trying to install NumPy (v23.8) onder Macosx (panther
version). Python (v2.3) is bundled into panther and I installed the
IDE on top of that. After having untarred the source distribution in
the desktop directory and typed

>python setup.py install

as recommended in the attached documentation, I get:

running install
running build
running build_py
running build_ext
building '_numpy' extension
gcc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp
-mno-fused-madd -fno-common -dynamic -DNDEBUG -g -O3 -Wall
-Wstrict-prototypes -I/System/Library/Frameworks/vecLib.framework/Headers
-IInclude -IPackages/FFT/Include -IPackages/RNG/Include
-I/System/Library/Frameworks/Python.framework/Versions/2.3/include/python2.3
-c Src/arrayobject.c -o
build/temp.darwin-7.8.0-Power_Macintosh-2.3/Src/arrayobject.o
Src/arrayobject.c:18:20: Python.h: No such file or directory
In file included from Src/arrayobject.c:26:
Include/Numeric/arrayobject.h:24: parse error before '*' token
Include/Numeric/arrayobject.h:24: warning: type defaults to `int' in
declaration of `PyArray_GetItemFunc'
Include/Numeric/arrayobject.h:24: warning: data definition has no type
or storage class
Include/Numeric/arrayobject.h:25: parse error before '*' token
Include/Numeric/arrayobject.h:25: warning: function declaration isn't
a prototype

+ zilions of error messages that probably stem from this first error
(i.e. not finding this Python.h file). Now I have looked everywhere
else on the hard drive and Python.h is nowhere to be seen. Should I
install something else before attempting to install NumPy (but what?).
Thanks a lot.

Martino
-- 
http://mail.python.org/mailman/listinfo/python-list