0

请帮忙。我在命令提示符下键入 pip install pyautogui。该过程开始然后停止。这是发生的事情:

C:\Users\alexS\AppData\Local\Programs\Python\Python35-32\Scripts>pip install
pyautogui
Collecting pyautogui
  Using cached PyAutoGUI-0.9.33.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.3.1-cp35-cp35m-win32.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 1, in <module>
      File "C:\Users\alexS\AppData\Local\Temp\pip-build-1kn1qve4\pyscreeze\se
tup.py", line 6, in <module>
        version=__import__('pyscreeze').__version__,
      File "C:\Users\alexS\AppData\Local\Temp\pip-build-1kn1qve4\pyscreeze\py
screeze\__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\alexS
\AppData\Local\Temp\pip-build-1kn1qve4\pyscreeze\

C:\Users\alexS\AppData\Local\Programs\Python\Python35-32\Scripts>
4

2 回答 2

0

Image首先通过执行以下操作安装模块:

$ pip install Image

pyautogui然后重试安装

这个答案是基于经验的。

于 2016-09-08T14:00:59.333 回答
0

这已在 0.9.34 中修复,因此您现在应该可以安装它了。赶紧跑pip install -U pyautogui

于 2017-03-19T03:06:29.600 回答