2016-09-08 75 views
-1

請幫忙。我在命令提示符下鍵入pip install pyautogui。 過程開始然後停頓。這是發生了什麼:安裝pyautogui模塊失敗(我正在使用python 3.5 32位)

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> 

回答

0

做首先安裝Image模塊:

$ pip install Image 

然後重試再次

安裝pyautogui這個答案是基於經驗。

+0

非常感謝。 pip install PILLOW也可以。 –

0

從0.9.34開始已經修復,所以你應該可以立即安裝它。剛剛運行pip install -U pyautogui