2👍
Thanks to @ManikMia who was himself able to find the solution. So, here is the solution that he devised, and it worked for me too.
Firstly, change the Python version to 3.7
, and then run pip install pillow==8.0.0
.
Be careful about the pillow version also.
This is for the Namecheap shared Hosting
Source:stackexchange.com