小弟帮父亲改图片无奈图片太黑了, 没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