f2py
을 사용하여 포트란 코드에서 파이썬 모듈을 만들려고합니다. 내 프로젝트에 Makefile을 설정했다. Windows 7에서 MinGW 및 Python 3.2.2를 사용하고 있습니다. 실행할 때make는 .py 파일을 실행하지 않습니다
f2py.py -c --compiler=mingw32 -m itf itimes-f.f
모든 것이 잘 컴파일되고 실행됩니다. 내 메이크에서 대상을 생성하고 실행 그러나,이 수행합니다
> make compilef
f2py.py -c --compiler=mingw32 -m itf itimes-f.f
process_begin: CreateProcess(NULL, env python.exe C:\Python32\Scripts\f2py.py -c
--compiler=mingw32 -m itf itimes-f.f, ...) failed.
make (e=2): The system cannot find the file specified.
make: *** [compilef] Error 2
왜 make
명령을 실행하지 않으며, 어떻게 그것을 해결할 수 있습니까?
편집 : 작동하지 않는 출력에 표시된 명령을 실행 :
> python.exe C:\Python32\Scripts\f2py.py -c --compiler=mingw32 -m itf itimes-f.f
편집 2 :이 또 다른 문제를 제기
> env python.exe C:\Python32\Scripts\f2py.py -c --compiler=mingw32 -m itf itimes-f.f
'env' is not recognized as an internal or external command,
operable program or batch file.
을하지만, 다음은 작업 수행 - env
은 무엇이며 make
은 왜 추가합니까?
편집 3 : 플로리안의 의견을 바탕으로, env
인해 f2py.py.의 오두막 라인의 존재에 make
에서 추가 된 것으로 보인다 나는 f2py.py를 편집하여 새기기 앞에 #
을 추가했습니다.
>make compilef
f2py.py -c --compiler=mingw32 -m itf itimes-f.f
process_begin: CreateProcess(C:\Python32\Scripts\f2py.py, f2py.py -c --compiler=
mingw32 -m itf itimes-f.f, ...) failed.
make (e=193): Error 193
make: *** [compilef] Error 193
그리고 오류 메시지에서 주어진 명령을 실행하려고하면? –
@ IgnacioVazquez-Abrams, 어떤 명령을 말하는 겁니까? – astay13
'env'로 시작하는 것. –