无法引用numpy_financial模块问题如何解决?
import numpy_financial as npf
=====================#
def sta001(k, nyear, xd):
d2 = npf.fv(k, nyear, -xd, -xd);
d2 = round(d2)
return d2
=====================#
运行报错:
Traceback (most recent call last):
File “/Users/zhangmiao/Desktop/lianghua/c01_01_k101.py”, line 4, in
import numpy_financial as npf
ModuleNotFoundError: No module named ‘numpy_financial’
我确定已经使用 pip 安装了 numpy_financial,在 anaconda 的环境里也能看到 numpy_financial。
请教高手指点。
推荐文章: