Bonjour, je dois faire un programme (pour du calcul scientifique) et j'aimerais utiliser fortran et python.

j'essaye depuis hier d'installer f2py pour pouvoir utiliser du fortran dans mon programme python, mais je n'arrive pas à le faire marcher.

je suis sous windows 7 , j'ai installé mingw pour compiler les programmes fortran, j'ai installé python et numpy, (mes programmes avec python et numpy fonctionnent)
mais je n'arrive pas à faire fonctionner f2py, qui est pourtant supposé faire partie de numpy

j'ai suivi ce tutorial :
http://www.engr.ucsb.edu/~shell/che210d/f2py.pdf

ils me disent : pour compiler un module avec f2py, entrez une commande de la forme suivante :
f2py –c –m MODULENAME SOURCE.f90 --fcompiler=gnu95 --compiler=mingw32

donc j'ai testé ça, mais au lieu de compiler, ça m'affiche cette erreur :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
 
 
 
C:\Users\Camille\Desktop\Paul\stage\Programmes python> f2py -c -m hello.f90 --fc
ompiler=gnu95 --compiler=mingw32
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 "hello.f90" sources
build_src: building npy-pkg config files
running build_ext
Traceback (most recent call last):
  File "C:\Program Files\Python35-32\Scripts\f2py.py", line 28, in <module>
    main()
  File "c:\program files\python35-32\lib\site-packages\numpy\f2py\f2py2e.py", li
ne 648, in main
    run_compile()
  File "c:\program files\python35-32\lib\site-packages\numpy\f2py\f2py2e.py", li
ne 633, in run_compile
    setup(ext_modules=[ext])
  File "c:\program files\python35-32\lib\site-packages\numpy\distutils\core.py",
 line 169, in setup
    return old_setup(**new_attr)
  File "c:\program files\python35-32\lib\distutils\core.py", line 148, in setup
    dist.run_commands()
  File "c:\program files\python35-32\lib\distutils\dist.py", line 955, in run_co
mmands
    self.run_command(cmd)
  File "c:\program files\python35-32\lib\distutils\dist.py", line 974, in run_co
mmand
    cmd_obj.run()
  File "c:\program files\python35-32\lib\site-packages\numpy\distutils\command\b
uild.py", line 47, in run
    old_build.run(self)
  File "c:\program files\python35-32\lib\distutils\command\build.py", line 135,
in run
    self.run_command(cmd_name)
  File "c:\program files\python35-32\lib\distutils\cmd.py", line 313, in run_com
mand
    self.distribution.run_command(command)
  File "c:\program files\python35-32\lib\distutils\dist.py", line 974, in run_co
mmand
    cmd_obj.run()
  File "c:\program files\python35-32\lib\site-packages\numpy\distutils\command\b
uild_ext.py", line 117, in run
    force=self.force)
  File "c:\program files\python35-32\lib\site-packages\numpy\distutils\ccompiler
.py", line 596, in new_compiler
    compiler = klass(None, dry_run, force)
  File "c:\program files\python35-32\lib\site-packages\numpy\distutils\mingw32cc
ompiler.py", line 58, in __init__
    dry_run, force)
  File "c:\program files\python35-32\lib\distutils\cygwinccompiler.py", line 157
, in __init__
    self.dll_libraries = get_msvcr()
  File "c:\program files\python35-32\lib\distutils\cygwinccompiler.py", line 86,
 in get_msvcr
    raise ValueError("Unknown MS Compiler version %s " % msc_ver)
ValueError: Unknown MS Compiler version 1900
 
C:\Users\Camille\Desktop\Paul\stage\Programmes python>
quelqu'un pourrait m'aider à déchiffrer ça ?