[英]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.