python -pyautogui 安装遇到问题

pip insatall pyautogui安装遇到问题:

Complete output from command python setup.py egg_info:

    Traceback (most recent call last):

      File "", line 1, in

      File "C:\Users\Administrator\AppData\Local\Temp\pip-install-zr0ey8t1\pygetwindow\setup.py", line 11, in

        long_description = fh.read()

    UnicodeDecodeError: 'gbk' codec can't decode byte 0xa2 in position 905: illegal multibyte sequence

    ----------------------------------------

Command "python setup.py egg_info" failed with error code 1 in C:\Users\Administrator\AppData\Local\Temp\pip-install-zr0ey8t1\pygetwindow\


python -pyautogui 安装遇到问题_第1张图片

问题原因:

        安装文件读取格式错误

解决方法:安装历史版本

        pip install PyAutoGUI==0.9.33

你可能感兴趣的:(python -pyautogui 安装遇到问题)