Error on MacOS when using FDPF2 not a problem with Windows OS

I get the following error on my MAC while attempting to use FPDF2:

Traceback (most recent call last):
File “/Users/phillipmitchell/PycharmProjects/pythonProject01/foodfile0030.py”, line 4, in
import FPDF2
ModuleNotFoundError: No module named ‘FPDF2’

This does not occur when I run the program on the Windows platform.

When I try to reinstall FPDF2 in the command prompt, I get the following:

phillipmitchell@Phillips-MacBook-Air ~ % python3 -m pip install fpdf2
Requirement already satisfied: fpdf2 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (2.7.9)

The module name is “fpdf” not “FPDF2” acording to the PyPI page: fpdf2 · PyPI