点击下面这个地方,然后输入下面代码:
pip install pyautogui
如果出现错误:
WARNING: You are using pip version 20.2.3; however, version 22.3.1 is available.
解决方法:
先点击file,然后点击Setting
然后点击Project:pythonProject1->点击Python Interpreter
然后双击pip,会出来下面界面
网速不太好的多试几次,下面将对勾打上,然后点击Install Package
最后再重新输入pip install pyautogui即可
成功: