Just guessing, but the output refers to a local python. Maybe the program is trying to use the global python which maybe doesnt have fpdf2 installed.
Do you have a global python installed?
If you do, try opening a cmd window (real one not one from IDE) and doing the pip install fpdf2 - then try the program again.