I installed Python using brew
I put the package like this pip install moderngl, as you can see in the screenshot it is there, but it still gives an error that it is not installed

>Solution :
Read this: ModernGL
Python is case-sensitive
It is import moderngl not import ModernGL
Like this works:
import math
This doesn’t:
import MATH