Command "python setup.py egg_info" failed with error code 1 in C:\Users\80237102
\AppData\Local\Temp\pip-install-m1k3v484\pygetwindow\
这个错误是安装pyautogui过程中遇到的一个核心错误,是安装PyGetWindow过程中出现的,网上搜了一通,最后试了各种方法,就是降低PyGetWindow版本,默认安装的PyAutoGUI-0.9.41,依赖的是PyGetWindow-0.0.4,就是这个PyGetWindow-0.0.4导致了上述问题,于是网上大神说降低PyGetWindow版本,运行pip install PyGetWindow==0.0.1后安装PyGetWindow成功,然后再运行pip install pyautogui。