安装 python、numpy 和 scipy_dist_utils 后,我在 python 解释器上输入了 f2py 结果如下
>>> f2py
Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
f2py
NameError: name 'f2py' is not defined
>>> import numpy
>>> f2py
Traceback (most recent call last):
File "<pyshell#2>", line 1, in <module>
f2py
NameError: name 'f2py' is not defined
from numpy import f2py 解决了这个问题,但这现在不起作用 f2py -c --help-fcompiler
f2py -c --help-fcompiler Traceback(最近一次调用最后一次):文件“”,第 1 行,在 f2py -c --help-fcompiler NameError: name 'c' is not defined
出了什么问题?有人可以帮我吗?