• python 3.5.2 install pillow


    1. 首先尝试从官网下载, pip install pillow, 结果网络不行,总是连不上或者下载中就失败,

    C:Windowssystem32>pip install pillow
    Collecting pillow
    Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionP
    ool(host='pypi.python.org', port=443): Read timed out. (read timeout=15)",)': /packages/13/97/893f8c74e829464f86110f8a0ddefd3886f0
    3cc45af9799185294d7c45e3/Pillow-3.4.2-cp35-cp35m-win_amd64.whl
    Downloading Pillow-3.4.2-cp35-cp35m-win_amd64.whl (1.5MB)
    9% |███ | 143kB 3.7kB/s eta 0:06:09
    THESE PACKAGES DO NOT MATCH THE HASHES FROM THE REQUIREMENTS FILE. If you have updated the package versions, please update the has
    hes. Otherwise, examine the package contents carefully; someone may have tampered with them.
    pillow from https://pypi.python.org/packages/13/97/893f8c74e829464f86110f8a0ddefd3886f03cc45af9799185294d7c45e3/Pillow-3.4.2-c
    p35-cp35m-win_amd64.whl#md5=d034bb805314429fa2afe8da7ecaa935:
    Expected md5 d034bb805314429fa2afe8da7ecaa935
    Got 0d1dfd8a74da1c6f9c964a9e7f683fd4

    2. 于是尝试douban 镜像, 从豆瓣镜像站点安装,成功:

        

    C:Windowssystem32>pip --default-timeout=100 install pillow -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
    Collecting pillow
    Downloading http://pypi.doubanio.com/packages/13/97/893f8c74e829464f86110f8a0ddefd3886f03cc45af9799185294d7c45e3/Pillow-3.4.2-cp
    35-cp35m-win_amd64.whl (1.5MB)
    100% |████████████████████████████████| 1.5MB 511kB/s
    Installing collected packages: pillow
    Successfully installed pillow-3.4.2

    C:Windowssystem32>python --version
    Python 3.5.2

      

        

    同样的方法安装 Django

    C:Usersdell>pip --default-timeout=100 install Django==1.8.16 -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
    Collecting Django==1.8.16
    Downloading http://pypi.doubanio.com/packages/5c/38/7324791951945b7fa0ba5c6dd57cff12ac544a260e110b2509cda6ced2f8/Django-1.8.16-py2.py3-none-any.whl (6.2MB)
    100% |████████████████████████████████| 6.2MB 890kB/s
    Installing collected packages: Django
    Successfully installed Django-1.8.16
    You are using pip version 8.1.1, however version 9.0.1 is available.
    You should consider upgrading via the 'python -m pip install --upgrade pip' command.

    C:Usersdell>

    还有virtualenvwrapper-win

    C:Usersdell>pip --default-timeout=100 install virtualenvwrapper-win -i http://pypi.douban.com/simple --trusted-host py
    Collecting virtualenvwrapper-win
    Downloading http://pypi.doubanio.com/packages/af/f1/d2fbc0c65353e3aaa02dd414102158f097abe77c34df48e864ee7afef822/virtu
    Collecting virtualenv (from virtualenvwrapper-win)
    Downloading http://pypi.doubanio.com/packages/6f/86/3dc328ee7b1a6419ebfac7896d882fba83c48e3561d22ddddf38294d3e83/virtu
    100% |████████████████████████████████| 1.8MB 43kB/s
    Installing collected packages: virtualenv, virtualenvwrapper-win
    Running setup.py install for virtualenvwrapper-win ... done
    Successfully installed virtualenv-15.1.0 virtualenvwrapper-win-1.2.1
    You are using pip version 8.1.1, however version 9.0.1 is available.
    You should consider upgrading via the 'python -m pip install --upgrade pip' command.

  • 相关阅读:
    3、总结
    三分及小例题
    约瑟夫问题的推导
    对于联通块的处理
    扩展欧几里得与二元不定方程
    js 阻止事件捕获
    原生xhr发送JSON
    $timeout
    Angularjs Ng_repeat中实现复选框选中并显示不同的样式
    为什么用Object.prototype.toString.call(obj)检测对象类型?
  • 原文地址:https://www.cnblogs.com/alexyuyu/p/6240516.html
Copyright © 2020-2023  润新知