gpt4 book ai didi

Python 模块安装错误代码 1

转载 作者:太空宇宙 更新时间:2023-11-04 10:18:03 24 4
gpt4 key购买 nike

在过去的几天里,我一直在尝试通过 pip 安装 pyautogui 模块。进展不顺利。我已经尝试了一些我在网上看到的修复程序,但都没有用。我需要一些帮助。这是我的 CMD 文本的副本:

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.

C:\Users\FrankFritz>py -m pip install pyautogui
Collecting pyautogui
Using cached PyAutoGUI-0.9.31.zip
Collecting pymsgbox (from pyautogui)
Using cached PyMsgBox-1.0.3.zip
Collecting PyTweening>=1.0.1 (from pyautogui)
Using cached PyTweening-1.0.3.zip
Collecting Pillow (from pyautogui)
Using cached Pillow-3.0.0-cp35-none-win_amd64.whl
Collecting pyscreeze (from pyautogui)
Using cached PyScreeze-0.1.8.zip
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 20, in <module>
File "C:\Users\FrankFritz\AppData\Local\Temp\pip-build-yjly5zdh\pyscreeze\setup.p
y", line 6, in <module>
version=__import__('pyscreeze').__version__,
File "C:\Users\FrankFritz\AppData\Local\Temp\pip-build-yjly5zdh\pyscreeze\pyscree
ze\__init__.py", line 21, in <module>
from PIL import Image
ImportError: No module named 'PIL'

----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:\Users\FrankFritz\AppD
ata\Local\Temp\pip-build-yjly5zdh\pyscreeze

提前谢谢你,这一直很令人沮丧。

最佳答案

首先安装PIL。如果您使用的是 Py3,请安装 Pillow,这是一个 PIL 替代品。

关于Python 模块安装错误代码 1,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34167669/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com