python安装pyautogui

1、安装
使用pip进行安装,pip install pyautogui
在直接安装的时候会出现如上的错误,由于pygetwindow安装的版本是0.0.4,所以出现了错误

ERROR: Complete output from command python setup.py egg_info:
ERROR: Traceback (most recent call last):
File "", line 1, in 
File "C:\Users\14276\AppData\Local\Temp\pip-install-4zlt3f4k\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\14276\AppData\Local\Temp\pip-install-4zlt3f4k\pygetwindow\

这个是pygetwindow包的信息

Using cached 
https://files.pythonhosted.org/packages/01/ed/56d4a369c6e18f6b239d9ef37b3222ba308bfebf949571b2611ff7d64f1d/PyGetWindow-0.0.4.tar.gz

二、解决
降低pygetwindow的版本为0.0.1,【pip install PyGetWindow==0.0.1】,这样子安装后,在【pip install pyautogui】就可以安装成功。

你可能感兴趣的:(Python,python,pycharm,后端)