What do you do when "import numpy_financial as npf" is giving you an error feedback | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

What do you do when "import numpy_financial as npf" is giving you an error feedback

import numpy_financial as npf res = npf.pmt(rate=0.15, nper=30, fv=2000000, pv=0) print(res) numpy couldn't be found

13th Dec 2021, 6:56 AM
Grace Street
Grace Street - avatar
3 Answers
0
Definatlly install it using pip pip install numpy-financial
13th Dec 2021, 9:22 AM
Ayush Kumar
Ayush Kumar - avatar
0
I tried "pip install numpy-financial" and "I then try pip install numpy_financial", they both gave me syntax error
13th Dec 2021, 4:24 PM
Grace Street
Grace Street - avatar
0
Well its working alright for me ! Can you tell me what's the error.
13th Dec 2021, 6:50 PM
Ayush Kumar
Ayush Kumar - avatar