首页 > 代码库 > python 3.5.2 install pillow
python 3.5.2 install pillow
1. 首先尝试从官网下载, pip install pillow, 结果网络不行,总是连不上或者下载中就失败,
C:\Windows\system32>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:\Windows\system32>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:\Windows\system32>python --version
Python 3.5.2
python 3.5.2 install pillow