[英]How to install PIL on Spyder(Anaconda 3)?
當我繼續使用conda install PIL進行安裝時,這就是問題它給了我:
UnsatisfiableError: The following specifications were found to be in conflict:
- pil -> python 2.6*
- python 3.6*
PIL似乎不再維持。 只需安裝枕頭:
conda install pillow
並使用就像你安裝了PIL一樣:
from PIL import Image
我可以通過安裝枕頭版本5修復問題,請嘗試一次。
conda install --channel conda-forge pillow=5
使用
from pil import Image
代替
from PIL import Image
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.