首页 > 解决方案 > 枕头无法导入

问题描述

我的枕头模块有问题。所以基本上我尝试了这个网站上的方法,安装它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

标签: pythonpython-imaging-library

解决方案


Kitty Star 我想建议你用枕头替换 PIL,然后安装枕头,如果你的代码没有运行,让我知道下一个错误。


推荐阅读