Django:无法使用ImageField,因为没有安装Pillow

时间:2015-06-05 06:39:51

标签: python django pillow

当我尝试按照命令django发出以下错误时。

python manage.py syncdb 

和django错误是

CommandError: System check identified some issues:

ERRORS:
applicant.GalleryImage.image: (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".
applicant.Speaker.image: (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".

在我的virtualenv

中安装软件包
(Dev-Env)➜  applicantWeb git:(master) ✗ pip freeze
beautifulsoup4==4.3.2
Django==1.7.1
django-mongodb-engine==0.5.2
djangotoolbox==1.6.2
ipython==3.1.0
oauthlib==0.7.2
Pillow==2.8.1
PyJWT==1.3.0
pymongo==3.0.2
python-openid==2.2.5
python-social-auth==0.2.10
requests==2.7.0
requests-oauthlib==0.5.0
six==1.9.0
wheel==0.24.0

我尝试安装以下命令,但仍然出现错误。

pip install pillow

我该怎么办?

0 个答案:

没有答案