I created a ImageField in model.py file and when I tried to run Python gave me an error. It says I have to install pillow . So I typed pip install pillow command. Then it started installing and after some time (though I thought it was successfully installed) it gave another error and said that it was not successfully installed. It gave me bunch of red colored text that I didn't understand.
-
can you share what is the exact error you're getting?– Chayan BansalCommented Apr 19, 2020 at 10:51
-
Consider posting the errors because it provides information on why it did not successfully install. Also, it might help if you provide what OS you are using.– Lemon.pyCommented Apr 19, 2020 at 10:51
-
Also, have a check if this stackoverflow.com/questions/56823496/… solves your query– Chayan BansalCommented Apr 19, 2020 at 10:52
Add a comment
|
1 Answer
I hope it works.
pip install pillow
To check the version or whether it is installed type the following command.
import PIL
print('PIL',PIL.__version__)
Output (for my machine)
PIL 6.2.0
You can also install Pillow along with pip by the following command.
python3 -m pip install --upgrade Pillow
I hope it would be helpful.