python 安装pyautogui 失败问题

首先感谢 xianyirenx 博主帮我解决这个问题,

安装: pyautogui  时,总是出现以下错误。后面找了好久资料才解决

Requirement already satisfied: pyautogui in d:\python\python36\lib\site-packages\pyautogui-0.9.42-py3.6.egg (0.9.42)
Collecting pymsgbox (from pyautogui)
  Using cached https://files.pythonhosted.org/packages/b6/65/86379ede1db26c40e7972d7a41c69cdf12cc6a0f143749aabf67ab8a41a1/PyMsgBox-1.0.6.zip
Collecting PyTweening>=1.0.1 (from pyautogui)
  Using cached https://files.pythonhosted.org/packages/b9/f8/c32a58d6e4dff8aa5c27e907194d69f3b57e525c2e4af96f39c6e9c854d2/PyTweening-1.0.3.zip
Collecting Pillow (from pyautogui)
  Using cached https://files.pythonhosted.org/packages/e6/37/fc5bde88462cf8a069e522dd6a0d259b69faba1326f0a3ce8b4e11d9f317/Pillow-6.0.0-cp36-cp36m-win_amd64.whl
Collecting pyscreeze>=0.1.20 (from pyautogui)
  Using cached https://files.pythonhosted.org/packages/db/04/d265ef033d283df6c2d81464cd52eecaf41fb788b52d0f78593b7f44fd6c/PyScreeze-0.1.20.tar.gz
Collecting pygetwindow (from pyautogui)
  Using cached https://files.pythonhosted.org/packages/01/ed/56d4a369c6e18f6b239d9ef37b3222ba308bfebf949571b2611ff7d64f1d/PyGetWindow-0.0.4.tar.gz
    ERROR: Complete output from command python setup.py egg_info:
    ERROR: Traceback (most recent call last):
      File "", line 1, in 
      File "C:\Users\ADMINI~1\AppData\Local\Temp\pip-install-8zbl3i7_\pygetwindow\setup.py", line 11, in 
        long_description = fh.read()
    UnicodeDecodeError: 'gbk' codec can't decode byte 0xa2 in position 905: illegal multibyte sequence
    ----------------------------------------
ERROR: Command "python setup.py egg_info" failed with error code 1 in C:\Users\ADMINI~1\AppData\Local\Temp\pip-install-8zbl3i7_\pygetwindow\

先安装 pip install PyGetWindow==0.0.1

再安装 pip install pyautogui

 

 

解决链接:https://blog.csdn.net/xianyirenx/article/details/86749474

你可能感兴趣的:(爬虫相关,Python编程)