zoukankan      html  css  js  c++  java
  • Python pillow库安装报错

    报错信息:

    D:pythontestduanxinhongzha>pip3 install pillow
    Collecting pillow
    Could not find a version that satisfies the requirement pillow (from versions:)
    No matching distribution found for pillow

    错误原因:1.后来找了很多方法,发现我的电脑是64位的,而官网只提供32位的,就是自己去官网下载的其他PIL
         2.没有对应的版本,我python 3.5.0

    解决方法:找一个非官方的64位大家通用的PIL安装

    (1)打开网址 http://www.lfd.uci.edu/~gohlke/pythonlibs/

    (2)搜索PIL(ctrl+F),找到下面的图片所示,如果你的python是2.7版本就下载cp27的,3.5就下载cp35

    然后,使用命令 pip3 install path文件名  安装即可

     (3) 直接安装其他版本

     得去https://pypi.org/查询pillow有哪些版本,且哪些版本支持的你python版本

    D:pythontestduanxinhongzha>pip3 install Pillow==5.0.0
    Collecting Pillow==5.0.0
      Downloading https://files.pythonhosted.org/packages/f6/02/9d98b5bc4535ad4e03ae
    da9e529e7d925a569ad4e47883ee093364b6e086/Pillow-5.0.0-cp35-cp35m-win_amd64.whl (
    1.6MB)
        36% |███████████▌                    | 563kB 1.4MB/s eta 0:00:01
        40% |█████████████                   | 634kB 461kB/s eta 0:00:04
        49% |████████████████                | 778kB 1.2MB/s eta 0:0
        50% |████████████████                | 788kB 1.1MB/s eta 0:0
        51% |████████████████▌               | 798kB 1.3MB/s eta 0:
        51% |████████████████▌               | 808kB 1.4MB/s eta 0:54
        59% |███████████████████             | 931kB 441kB/s eta
        60% |███████████████████             | 942kB 446kB/s eta
        60% |███████████████████▌            | 952kB 436kB/s eta68
        72% |███████████████████████         | 1.1MB 504kB/s75
        76% |████████████████████████▌       | 1.2MB 458kB/79
        80% |██████████████████████████      | 1.3MB 1.6MB
        83% |██████████████████████████▌     | 1.3MB 1.6M
        83% |███████████████████████████     | 1.3MB 1.3M
        84% |███████████████████████████     | 1.3MB 1.6M
        87% |████████████████████████████    | 1.4MB 547
        88% |████████████████████████████    | 1.4MB 547
        89% |████████████████████████████▌   | 1.4MB 46
        89% |█████████████████████████████   | 1.4MB 46
        90% |█████████████████████████████   | 1.4MB 46
        90% |█████████████████████████████   | 1.4MB 46
        91% |█████████████████████████████   | 1.4MB 46
        94% |██████████████████████████████  | 1.5MB 8
        94% |██████████████████████████████▌ | 1.5MB
        95% |██████████████████████████████▌ | 1.5MB
        96% |███████████████████████████████ | 1.5MB
        96% |███████████████████████████████ | 1.5MB100
        100% |████████████████████████████████| 1.6M
    B 1.3MB/s
    Installing collected packages: Pillow
    Successfully installed Pillow-5.0.0
  • 相关阅读:
    Study Plan The TwentySecond Day
    Study Plan The Nineteenth Day
    Study Plan The TwentySeventh Day
    Study Plan The Twentieth Day
    Study Plan The TwentyFirst Day
    python实现进程的三种方式及其区别
    yum makecache
    JSONPath 表达式的使用
    oracle执行cmd的实现方法
    php daodb插入、更新与删除数据
  • 原文地址:https://www.cnblogs.com/linyouyi/p/11427167.html
Copyright © 2011-2022 走看看