1. 程式人生 > >(Python問題一)python 安裝PIL (Python Imaging Library )

(Python問題一)python 安裝PIL (Python Imaging Library )

python 安裝PIL (Python Imaging Library ) 提示

Could not find a version that satisfies the requirement PIL (from versions: )
No matching distribution found for PIL

開始用
sudo pip install PIL 
總是提示上述錯誤

用命令

sudo pip search PIL

出現  Pillow (3.2.0)         Python Imaging Library (Fork)

名字變了 。。。。。。

下面正確方式

嘗試用命令安裝

sudo pip install Pillow

通過 命令引入   from PIL import Image(Pillow由PIL而來,所以該匯入該庫使用import PIL) 正確