枕头不能进口

2024-09-30 16:29:40 发布

您现在位置:Python中文网/ 问答频道 /正文

我的枕头模块有问题。 因此,基本上我在这个网站上尝试了这些方法,在每个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: No module named PIL


Tags: 模块installpip方法代码fromimageimport