我有一个问题与枕头模块.所以基本上我尝试了这个网站上的方法安装它,根据 pip install Pillow
并按 from PIL import Image
和 import PIL
都不行
我真的很感激,如果有人帮助和感谢阅读。这是我的代码。
import pyautogui
import pyscreeze
from PIL import Image
lkchat = pyautogui.locateCenterOnScreen("python.png")
print ("lkchat")
我得到以下错误信息:
from PIL import Image ImportError: 没有名为PIL的模块
小鹰星我想建议你用枕头替换PIL,然后安装枕头,如果你的代码不能运行,让我知道接下来的错误。