ImportError when importing Matplotlib

I am getting this error when I import matplotlib.pyplot in Jupyter Notebook Import Error : cannot an import name ‘__imaging’ from PIL .

It appears the problem is the latest version of Pillow is 11.2.1 , while the latest of matplotlib is 10.0.1 . Due to this I get the import error when I import matplotlib
Is there a way to make matplotlib use the compatible Pillow version of 3.9.4 in Notebook or even in unix shell ?

Due to lack of admin privileges in my organization’s system I cant uninstall Pillow