Oct-06-2016, 01:41 PM
Sorry!!! And thx for your help
I installed numpy+mkl, gnu95, VC++ for Python27, and upgrated setuptools to up-to-date correctly.
when I put [Python -m numpy.f2py -c -fcompiler=gnu95 -m prime primepy.f90] into cmd, [compiling C sources error: Unable to find vcvarsall.bat] was came out.
C:\Users\Owner>Python -m numpy.f2py -c -fcompiler=gnu95 -m prime primepy.f90
running build
running config_cc
unifing config_cc, config, build_clib, build_ext, build commands --compiler opti
ons
running config_fc
unifing config_fc, config, build_clib, build_ext, build commands --fcompiler opt
ions
running build_src
build_src
building extension "prime" sources
f2py options: []
f2py:> c:\users\owner\appdata\local\temp\tmpmqpsn2\src.win32-2.7\primemodule.c
creating c:\users\owner\appdata\local\temp\tmpmqpsn2\src.win32-2.7
Reading fortran codes...
Reading file 'primepy.f90' (format:fix)
Post-processing...
Block: prime
Block: prime_number
Post-processing (stage 2)...
Building modules...
Building module "prime"...
Constructing wrapper function "prime_number"...
ret = prime_number(max_num)
Wrote C/API module "prime" to file "c:\users\owner\appdata\local\temp\tm
pmqpsn2\src.win32-2.7\primemodule.c"
adding 'c:\users\owner\appdata\local\temp\tmpmqpsn2\src.win32-2.7\fortranobjec
t.c' to sources.
adding 'c:\users\owner\appdata\local\temp\tmpmqpsn2\src.win32-2.7' to include_
dirs.
copying c:\Python27\lib\site-packages\numpy\f2py\src\fortranobject.c -> c:\users
\owner\appdata\local\temp\tmpmqpsn2\src.win32-2.7
copying c:\Python27\lib\site-packages\numpy\f2py\src\fortranobject.h -> c:\users
\owner\appdata\local\temp\tmpmqpsn2\src.win32-2.7
build_src: building npy-pkg config files
running build_ext
customize MSVCCompiler
customize MSVCCompiler using build_ext
customize GnuFCompiler
Could not locate executable g77
Could not locate executable f77
customize IntelVisualFCompiler
Could not locate executable ifort
Could not locate executable ifl
customize AbsoftFCompiler
Could not locate executable f90
customize CompaqVisualFCompiler
Could not locate executable DF
customize IntelItaniumVisualFCompiler
Could not locate executable efl
customize Gnu95FCompiler
Found executable C:\Users\Owner\gfortran\bin\gfortran.exe
Found executable C:\Users\Owner\gfortran\bin\gfortran.exe
customize Gnu95FCompiler
customize Gnu95FCompiler using build_ext
building 'prime' extension
compiling C sources
error: Unable to find vcvarsall.bat
it might be problem that when I search [where vcvarsall.bat], it said there is no such file.
I installed numpy+mkl, gnu95, VC++ for Python27, and upgrated setuptools to up-to-date correctly.
when I put [Python -m numpy.f2py -c -fcompiler=gnu95 -m prime primepy.f90] into cmd, [compiling C sources error: Unable to find vcvarsall.bat] was came out.
C:\Users\Owner>Python -m numpy.f2py -c -fcompiler=gnu95 -m prime primepy.f90
running build
running config_cc
unifing config_cc, config, build_clib, build_ext, build commands --compiler opti
ons
running config_fc
unifing config_fc, config, build_clib, build_ext, build commands --fcompiler opt
ions
running build_src
build_src
building extension "prime" sources
f2py options: []
f2py:> c:\users\owner\appdata\local\temp\tmpmqpsn2\src.win32-2.7\primemodule.c
creating c:\users\owner\appdata\local\temp\tmpmqpsn2\src.win32-2.7
Reading fortran codes...
Reading file 'primepy.f90' (format:fix)
Post-processing...
Block: prime
Block: prime_number
Post-processing (stage 2)...
Building modules...
Building module "prime"...
Constructing wrapper function "prime_number"...
ret = prime_number(max_num)
Wrote C/API module "prime" to file "c:\users\owner\appdata\local\temp\tm
pmqpsn2\src.win32-2.7\primemodule.c"
adding 'c:\users\owner\appdata\local\temp\tmpmqpsn2\src.win32-2.7\fortranobjec
t.c' to sources.
adding 'c:\users\owner\appdata\local\temp\tmpmqpsn2\src.win32-2.7' to include_
dirs.
copying c:\Python27\lib\site-packages\numpy\f2py\src\fortranobject.c -> c:\users
\owner\appdata\local\temp\tmpmqpsn2\src.win32-2.7
copying c:\Python27\lib\site-packages\numpy\f2py\src\fortranobject.h -> c:\users
\owner\appdata\local\temp\tmpmqpsn2\src.win32-2.7
build_src: building npy-pkg config files
running build_ext
customize MSVCCompiler
customize MSVCCompiler using build_ext
customize GnuFCompiler
Could not locate executable g77
Could not locate executable f77
customize IntelVisualFCompiler
Could not locate executable ifort
Could not locate executable ifl
customize AbsoftFCompiler
Could not locate executable f90
customize CompaqVisualFCompiler
Could not locate executable DF
customize IntelItaniumVisualFCompiler
Could not locate executable efl
customize Gnu95FCompiler
Found executable C:\Users\Owner\gfortran\bin\gfortran.exe
Found executable C:\Users\Owner\gfortran\bin\gfortran.exe
customize Gnu95FCompiler
customize Gnu95FCompiler using build_ext
building 'prime' extension
compiling C sources
error: Unable to find vcvarsall.bat
it might be problem that when I search [where vcvarsall.bat], it said there is no such file.