枕头无法导入

问题描述 投票:0回答:1

我有一个问题与枕头模块.所以基本上我尝试了这个网站上的方法安装它,根据 pip install Pillow 并按 from PIL import Imageimport PIL 都不行

我真的很感激,如果有人帮助和感谢阅读。这是我的代码。

import pyautogui
import pyscreeze
from PIL import Image
lkchat = pyautogui.locateCenterOnScreen("python.png")
print ("lkchat")

我得到以下错误信息:

from PIL import Image ImportError: 没有名为PIL的模块

python python-imaging-library
1个回答
0
投票

小鹰星我想建议你用枕头替换PIL,然后安装枕头,如果你的代码不能运行,让我知道接下来的错误。

© www.soinside.com 2019 - 2024. All rights reserved.