pyautogui 安装 报错

错误信息如下
pyautogui 安装 报错_第1张图片
UnicodeDecodeError: ‘gbk’ codec can’t decode byte 0xa2 in position 905: illegal multibyte sequence

Try to run this command from the system terminal. Make sure that you use the correct version of ‘pip’ installed for your Python interpreter located at ‘C:\Users\mcb45\Documents\Python\mytest\venv\Scripts\python.exe’.

Collecting PyAutoGUI0.9.41
Collecting pygetwindow (from PyAutoGUI
0.9.41)
Using cached https://files.pythonhosted.org/packages/01/ed/56d4a369c6e18f6b239d9ef37b3222ba308bfebf949571b2611ff7d64f1d/PyGetWindow-0.0.4.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File “”, line 1, in
File “C:\Users\mcb45\AppData\Local\Temp\pycharm-packaging\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\mcb45\AppData\Local\Temp\pycharm-packaging\pygetwindow\

解决办法:
pyautogui 安装 报错_第2张图片
pyautogui 安装 报错_第3张图片

我选的版本是 0.9.35,安装成功 。

你可能感兴趣的:(pyautogui 安装 报错)