作者lensfill (undo)
看板Python
標題[問題] pill修改圖片
時間Fri Mar 12 18:46:57 2021
小弟幫父親改圖片無奈圖片太黑了, 沒photoshop
用python改圖片想改成黑白分明一點
結果安裝pill和pip更新 感覺好像有,又好像沒有
但是執行程式時
結果卻是沒有
程式碼是
from PIL import Image
image = Image.open('1234567.jpg')
print(image.filename)
終端機出來是
PS C:\pythontraining> py Blackandwhite.py
Traceback (most recent call last):
File "C:\pythontraining\Blackandwhite.py", line 1, in <module>
from PIL import Image
ModuleNotFoundError: No module named 'PIL'
查關鍵字No module named 'PIL 就是一要安裝更新, 還是失敗,我確實有下載pill
有比較簡單的方法直接解決這問題
感謝
反正我都GOOGLE相關字安裝
終端機安裝出現這串字
You are using pip version 9.0.1, however version 21.0.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip'
command.
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 1.163.57.159 (臺灣)
※ 文章網址: https://www.ptt.cc/bbs/Python/M.1615546019.A.606.html
→ lensfill: 我是win 64位元系統 03/12 18:47
※ 編輯: lensfill (1.163.57.159 臺灣), 03/12/2021 18:53:29
→ OrzOGC: 因為你裝的是pill 不是pil...XD 03/12 18:53
→ lensfill: pil沒錯啊 03/12 18:59
→ lensfill: 我剛學python平時沒碰程式 03/12 19:11
→ bjchiou: PIL是python imaging library的縮寫 但模組名稱是Pillow 03/12 20:23
→ bjchiou: 到pypi.org確認一下 03/12 20:24
→ bjchiou: 原本的PIL在2011年停止開發 後繼者稱為Pillow 03/12 20:29
→ tzouandy2818: 請搜尋Pixlr 或 Photopea 調個照片不用學寫程式啦 03/12 23:46
→ ToastBen: Win10內建的相片程式應該就夠你用了... 03/13 01:12
推 qwerasdft: 小畫家不香嗎 03/13 14:35
→ lensfill: 剛找到了, 但是這是python版,我知道這款已經不更新了 03/13 17:52
→ lensfill: 討論python的方向, 或是平時使用方法不好嗎? 03/13 17:53
→ tzouandy2818: 蛤 是你自己問有沒有比較簡單的方法解決這個問題吧 03/13 19:39
→ lensfill: 嗯,藉機了解python, 我確實把其他方法暫時忘記,沒想 03/16 12:47
→ lensfill: 到就是忘了 03/16 12:47