• Cannot use ImageField because Pillow is not installed.


    现象描述:

    使用 ImageField ,创建数据库表时,提示如下:

    Cannot use ImageField because Pillow is not installed.

    HINT: Get Pillow at https://pypi.python.org/pypi/Pillow or run command "pip install Pillow"

    解决办法:

    在国内推荐豆瓣的源:
    http://pypi.douban.com/simple/

    执行命令:pip install -i https://pypi.douban.com/simple/ Pillow

    Collecting Pillow
      Downloading https://pypi.doubanio.com/packages/8f/ca/d5bcf20da81a8632c4692cff9
    881998a59fcb97567e4eb28364169a48ef6/Pillow-4.0.0-cp35-cp35m-win_amd64.whl (1.5MB
    )
        36% |███████████▋                    | 532kB 285kB/s eta 0:00:04
        36% |███████████▉                    | 542kB 250kB/s eta 0:00:04
        37% |████████████                    | 552kB 213kB/s eta 0:00:05
        38% |████████████▎                   | 563kB 196kB/s eta 0:00:0
        39% |████████████▌                   | 573kB 182kB/s eta 0:00:0
        39% |████████████▊                   | 583kB 163kB/s eta 0:00:0
        40% |█████████████                   | 593kB 153kB/s eta 0:00:0
        41% |█████████████▏                  | 604kB 163kB/s eta 0:00:
        41% |█████████████▍                  | 614kB 181kB/s eta 0:00:
        42% |█████████████▋                  | 624kB 186kB/s eta 0:00:
        43% |█████████████▉                  | 634kB 201kB/s eta 0:00:
        43% |██████████████                  | 645kB 221kB/s eta 0:00:
        44% |██████████████▎                 | 655kB 235kB/s eta 0:00
        45% |██████████████▌                 | 665kB 230kB/s eta 0:00
        45% |██████████████▊                 | 675kB 246kB/s eta 0:00
        46% |███████████████                 | 686kB 267kB/s eta 0:00
        47% |███████████████▏                | 696kB 263kB/s eta 0:0
        48% |███████████████▍                | 706kB 284kB/s eta 0:0
        48% |███████████████▋                | 716kB 301kB/s eta 0:0
        49% |███████████████▉                | 727kB 311kB/s eta 0:0
        50% |████████████████                | 737kB 345kB/s eta 0:0
        50% |████████████████▎               | 747kB 286kB/s eta 0:
        51% |████████████████▌               | 757kB 316kB/s eta 0:
        52% |████████████████▊               | 768kB 302kB/s eta 0:
        52% |█████████████████               | 778kB 292kB/s eta 0:
        53% |█████████████████▏              | 788kB 301kB/s eta 0
        54% |█████████████████▍              | 798kB 321kB/s eta 0
        55% |█████████████████▋              | 808kB 320kB/s eta 0
        55% |█████████████████▉              | 819kB 335kB/s eta 0
        56% |██████████████████              | 829kB 323kB/s eta 0
        57% |██████████████████▎             | 839kB 328kB/s eta
        57% |██████████████████▌             | 849kB 412kB/s eta
        58% |██████████████████▊             | 860kB 406kB/s eta
        59% |███████████████████             | 870kB 463kB/s eta
        59% |███████████████████▏            | 880kB 517kB/s eta
        60% |███████████████████▍            | 890kB 541kB/s eta
        61% |███████████████████▋            | 901kB 598kB/s eta
        62% |███████████████████▉            | 911kB 581kB/s eta
        62% |████████████████████            | 921kB 585kB/s eta
        63% |████████████████████▎           | 931kB 775kB/s et
        64% |████████████████████▌           | 942kB 736kB/s et
        64% |████████████████████▊           | 952kB 701kB/s et
        65% |█████████████████████           | 962kB 758kB/s et
        66% |█████████████████████▏          | 972kB 948kB/s e
        66% |█████████████████████▍          | 983kB 812kB/s e
        67% |█████████████████████▋          | 993kB 853kB/s e
        68% |█████████████████████▉          | 1.0MB 882kB/s e
        68% |██████████████████████          | 1.0MB 832kB/s e
        69% |██████████████████████▎         | 1.0MB 975kB/s
        70% |██████████████████████▌         | 1.0MB 975kB/s
        71% |██████████████████████▊         | 1.0MB 1.1MB/s
        71% |███████████████████████         | 1.1MB 965kB/s
        72% |███████████████████████▏        | 1.1MB 882kB/s
        73% |███████████████████████▍        | 1.1MB 853kB/s
        73% |███████████████████████▋        | 1.1MB 994kB/s
        74% |███████████████████████▉        | 1.1MB 1.1MB/s
        75% |████████████████████████        | 1.1MB 875kB/s
        75% |████████████████████████▎       | 1.1MB 1.1MB/
        76% |████████████████████████▌       | 1.1MB 1.1MB/
        77% |████████████████████████▊       | 1.1MB 1.1MB/
        78% |█████████████████████████       | 1.1MB 1.1MB/
        78% |█████████████████████████▏      | 1.2MB 1.2MB
        79% |█████████████████████████▍      | 1.2MB 1.2MB
        80% |█████████████████████████▋      | 1.2MB 1.2MB
        80% |█████████████████████████▉      | 1.2MB 1.2MB
        81% |██████████████████████████      | 1.2MB 1.3MB
        82% |██████████████████████████▎     | 1.2MB 1.7M
        82% |██████████████████████████▌     | 1.2MB 1.7M
        83% |██████████████████████████▊     | 1.2MB 1.7M
        84% |███████████████████████████     | 1.2MB 1.5M
        85% |███████████████████████████▏    | 1.2MB 1.2
        85% |███████████████████████████▍    | 1.3MB 1.2
        86% |███████████████████████████▋    | 1.3MB 1.2
        87% |███████████████████████████▉    | 1.3MB 1.3
        87% |████████████████████████████    | 1.3MB 1.2
        88% |████████████████████████████▎   | 1.3MB 1.
        89% |████████████████████████████▌   | 1.3MB 1.
        89% |████████████████████████████▊   | 1.3MB 1.
        90% |█████████████████████████████   | 1.3MB 1.
        91% |█████████████████████████████▏  | 1.3MB 1
        91% |█████████████████████████████▍  | 1.4MB 1
        92% |█████████████████████████████▋  | 1.4MB 2
        93% |█████████████████████████████▉  | 1.4MB 2
        94% |██████████████████████████████  | 1.4MB 1
        94% |██████████████████████████████▎ | 1.4MB
        95% |██████████████████████████████▌ | 1.4MB
        96% |██████████████████████████████▊ | 1.4MB
        96% |███████████████████████████████ | 1.4MB
        97% |███████████████████████████████▏| 1.4MB
        98% |███████████████████████████████▍| 1.4MB
        98% |███████████████████████████████▋| 1.5MB
        99% |███████████████████████████████▉| 1.5MB
        100% |████████████████████████████████| 1.5M
    B 839kB/s
    Collecting olefile (from Pillow)
      Downloading https://pypi.doubanio.com/packages/35/17/c15d41d5a8f8b98cc3df25eb0
    0c5cee76193114c78e5674df6ef4ac92647/olefile-0.44.zip (74kB)
        41% |█████████████▎                  | 30kB 590kB/s eta 0:00:0
        55% |█████████████████▊              | 40kB 538kB/s eta 0:
        69% |██████████████████████          | 51kB 501kB/s et
        82% |██████████████████████████▌     | 61kB 516kB
        96% |███████████████████████████████ | 71kB 5
        100% |████████████████████████████████| 81kB
     615kB/s
    Installing collected packages: olefile, Pillow
      Running setup.py install for olefile ... done
    Successfully installed Pillow-4.0.0 olefile-0.44
  • 相关阅读:
    【转】C++轻量级可配置语法分析器
    [转载]正则表达式大全
    Batch update returned unexpected row count from update 错误解决方法
    [转载]C# ToString格式字符串整理(Format)(数字、日期和枚举的标准格式设置说明符)(SamWang)
    Centos配置mono环境
    ASP.NET MVC 4 简介
    添加控制器 Adding a Controller
    [转载]OrmHate
    [转载]张小龙谈移动互联网产品
    [转载]Golden Ratio in logo designs
  • 原文地址:https://www.cnblogs.com/RUReady/p/6590252.html
Copyright © 2020-2023  润新知