unless you have a visual studio 2003 compiler, you may have to use python 2.6.



2009/7/29 ian <[email protected]>:
> Hi,everyone!
>
>        I installed MSVS2005 + Intel visual fortran 9.1 + Python 2.5 + 
> numpy-1.3.0-win32-superpack-python2.5.exe on my computer. The numpy works 
> well:
>
> Python 2.5 (r25:51908, Sep 19 2006, 09:52:17) [MSC v.1310 32 bit (Intel)] on 
> win32
> Type "copyright", "credits" or "license()" for more information.
>
>    ****************************************************************
>    Personal firewall software may warn about the connection IDLE
>    makes to its subprocess using this computer's internal loopback
>    interface.  This connection is not visible on any external
>    interface and no data is sent to or received from the Internet.
>    ****************************************************************
>
> IDLE 1.2
>>>> import numpy
>>>>
>
> but when I use : python c:\python25\scripts\f2py.py --fcompiler=intel -c 
> hello.f -m hello , the result is:
>
> running build
> running config_cc
> unifing config_cc, config, build_clib, build_ext, build commands --compiler 
> options
> running config_fc
> unifing config_fc, config, build_clib, build_ext, build commands --fcompiler 
> options
> running build_src
> building extension "hello" sources
> f2py options: []
> f2py:> 
> c:\docume~1\admini~1\locals~1\temp\tmpwktrfc\src.win32-2.5\hellomodule.c
> creating c:\docume~1\admini~1\locals~1\temp\tmpwktrfc
> creating c:\docume~1\admini~1\locals~1\temp\tmpwktrfc\src.win32-2.5
> Reading fortran codes...
>        Reading file 'hello.f' (format:fix,strict)
> Post-processing...
>        Block: hello
>                        Block: foo
> Post-processing (stage 2)...
> Building modules...
>        Building module "hello"...
>                Constructing wrapper function "foo"...
>                  foo(a)
>        Wrote C/API module "hello" to file 
> "c:\docume~1\admini~1\locals~1\temp\tmpwktrfc\src.win32-2.5/hellomodule.c"
>  adding 
> 'c:\docume~1\admini~1\locals~1\temp\tmpwktrfc\src.win32-2.5\fortranobject.c' 
> to sources.
>  adding 'c:\docume~1\admini~1\locals~1\temp\tmpwktrfc\src.win32-2.5' to 
> include_dirs.
> copying C:\Python25\lib\site-packages\numpy\f2py\src\fortranobject.c -> 
> c:\docume~1\admini~1\locals~1\temp\tmpwktrfc\src.win32-2.5
> copying C:\Python25\lib\site-packages\numpy\f2py\src\fortranobject.h -> 
> c:\docume~1\admini~1\locals~1\temp\tmpwktrfc\src.win32-2.5
> running build_ext
> No module named msvccompiler in numpy.distutils; trying from distutils
> error: python was built with Visula Studio 2003;
> extensions must be built with a compiler than can generate compatible 
> binaries.
> Visual Studio 2003 was not found on this system. If you have Cygwin
> installed, you can try compiling with MingW32, by passing "-c mingw32" to 
> setup.py.
>
> who could give me some suggestions on how to configure f2py?
>
>
> Thanks in advance.
>
>
> ian
> [email protected]
> 2009-07-30
> _______________________________________________
> NumPy-Discussion mailing list
> [email protected]
> http://mail.scipy.org/mailman/listinfo/numpy-discussion
>
_______________________________________________
NumPy-Discussion mailing list
[email protected]
http://mail.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to