To Solve ImportError: No module named psycopg2 Error If You are using Python 3 With Pip Then Just Run this command in your Terminal: pip3 install Pillow If You are using Python 3 With Pip Then Just Run this command in your Terminal: pip2 install Pillow Now, Your Error must be solved.