Python pillow library installation error

Error message:

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

错误原因:1.Later find a lot of ways, I found my computer is 64, and the official website provides only 32, that is, their own website to download other Quguan PIL
     2. there is no corresponding version, I python 3.5.0

Solution: find an unofficial 64-bit general-purpose we install PIL

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

(2) Search PIL (ctrl + F), find the picture below, if you are a python version 2.7 to download cp27 of 3.5 to download cp35

Then, use the command pip3 install path \ filename can be installed

 (3) direct install other versions

 You have to go https://pypi.org/ query pillow which version and which version supports your python version

D:\pythontest\duanxinhongzha>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 % | ███████████████████ | 441kB 931kB / s eta
     60 % | ███████████████████ | 446kB 942kB / 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

 

Guess you like

Origin www.cnblogs.com/linyouyi/p/11427167.html