[英]Issues when using f2py module in python code
我有一个FORTRAN代码,需要以下编译命令
gfortran -c interp.f -ffixed-format -ffix-line-length-none
我在python中使用f2py模块编译了相同的内容
from numpy import f2py
f2py.compile(open('interp.f').read(),modulename='interp',extra_flags='-ffixed-format -ffix-line-length-none',verbose=0)
它无法编译模块。 它出现错误,指出无效的文件格式''at'ffize-format'
请帮忙
-ffixed-format
, -ffix-line-length-none
似乎-ffix-line-length-none
是有效的gfortran选项。 请考虑使用-ffixed-form
和-ffixed-line-length-none
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.