2

I am using Python 3.2 under Windows 7. I need some numerical subroutines for my Python script, and I would like to write them in Fortran and use f2py to make them compatible with my script.

As per the f2py documentation, I installed numpy (v1.6.1), then tried running f2py on the command line to check the installation. Windows keeps telling me that "f2py is not recognized as an internal or external command, operable program, or batch file." I tried adding "C:\Python32\Scripts" to my PATH, but that didn't help. (C:\Python32 is my Python installation directory, and is also in my PATH, numpy is also installed here)

What am I doing wrong?

4

3 に答える 3

4

実行する必要がありますf2py.py。.py 拡張子を省略したい場合は、環境変数に追加.PYしてください。PATHEXT

于 2011-11-23T21:29:12.343 に答える
0

f2py.py を試しましたか?または「python f2py.py」または「python f2py」?ファイルに応じて、Windows がある場合は python を使用して py ext ファイルを開きます

于 2011-11-23T21:26:56.183 に答える