Reputation: 121
I just started a new Django project and when I try to makemigratons I get an error saying that I have to install Pillow and I have already installed Pillow.
ERRORS:
shop.ProductImages.product_img: (fields.E210) Cannot use ImageField because Pillow is not installed.
HINT: Get pillow at https://pypi.python.org/pypi/Pillow or run command "pip install pillow".
When I run pip freeze I can see that Pillow is already installed:
Pillow==2.7.0
I'm using Python 3.4.3 and Django 1.8. I didn't have this problem when I was using Python 2.7.
UPDATE:
When i try to import Image from PIL outside my virtualenv everything is fine, but when I try that in virtualenv i get this:
Traceback (most recent call last):
Fille "<stdin>", line 1, in <module>
File "C:\Python27\Lib\site-packages\PIL\Image.py", line 63, in <module>
from PIL import _imaging as core
ImportError: DLL load failed: The specified module could not be found.
I have python2 installed outside my virtualenv so does this mean that python is not looking in my virtualenv\Lib\site-packages? And I have just noticed that when I run pip freeze i get a list of packages that are installed on my system and not in virualenv, also when I try to install something that is already installed on my system I have to run pip --upgrade.
Upvotes: 1
Views: 4265
Reputation: 1
I have one version of python installed (python 3) and I had the same problem, but I tried their solution and it worked.
Upvotes: 0
Reputation: 121
I overcome this problem with easy_install --upgrade pillow
and if I want to install some package in virtualenv that I already have on my system I can just use pip <name of package> --upgrade
.
If someone have explanation for this problem and better solution please let me know!
Upvotes: 5
Reputation: 9
This happen because you have multiple python version installed. uninstall other python version and install pillow on your latest python version.
Upvotes: 0