[问题] pill修改图片

楼主: lensfill (undo)   2021-03-12 18:46:57
小弟帮父亲改图片无奈图片太黑了, 没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
楼主: lensfill (undo)   2021-03-12 18:47:00
我是win 64位元系统
作者: OrzOGC (洞八达人.拖哨天王)   2021-03-12 18:53:00
因为你装的是pill 不是pil...XD
楼主: lensfill (undo)   2021-03-12 18:59:00
pil没错啊我刚学python平时没碰程式
作者: bjchiou (bjchiou)   2021-03-12 20:23:00
PIL是python imaging library的缩写 但模组名称是Pillow到pypi.org确认一下原本的PIL在2011年停止开发 后继者称为Pillow
作者: tzouandy2818 (Naked Bear)   2021-03-12 23:46:00
请搜寻Pixlr 或 Photopea 调个照片不用学写程式啦
作者: ToastBen (吐司边)   2021-03-13 01:12:00
Win10内建的相片程式应该就够你用了...
作者: qwerasdft (小夜)   2021-03-13 14:35:00
小画家不香吗
楼主: lensfill (undo)   2021-03-13 17:52:00
刚找到了, 但是这是python版,我知道这款已经不更新了讨论python的方向, 或是平时使用方法不好吗?
作者: tzouandy2818 (Naked Bear)   2021-03-13 19:39:00
蛤 是你自己问有没有比较简单的方法解决这个问题吧
楼主: lensfill (undo)   2021-03-16 12:47:00
嗯,借机了解python, 我确实把其他方法暂时忘记,没想到就是忘了

Links booklink

Contact Us: admin [ a t ] ucptt.com