天天看點

Conda 安裝PIL失敗Conda 安裝PIL失敗

Conda 安裝PIL失敗

如題。

PIL隻支援到python2,如果使用python3就會無法安裝。

解決方法:

安裝相容python3的pillow庫

pip install pillow
           

即可。

之後在項目中可正常導入PIL。

from PIL import Image