簡體   English   中英

我安裝了 Pillow 並嘗試使用 from PIL import Image 但它給出了錯誤

[英]I installed Pillow and am trying to use from PIL import Image but it gives an error

我已經安裝 Pillow (7.2.0) 但是當我使用

from PIL import ImageTk, Image, ImageDraw, ImageFont

它給了我這個錯誤: ModuleNotFoundError: No module named 'PIL'

我能做什么? 我做了pip install Pillow 我試過卸載和安裝枕頭,但沒有用。 我在 Windows 上有 python 3.7

使用以下命令獲取最新版本的 Pillow

pip install wheel
pip install Pillow

我已經在 Google Colab 中完成了在此處輸入圖片說明

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM