Pyautogui not importing "No module named 'pyautogui' "
Why are you getting this error?
Because you are using PyCharm.
In PyCharm you don't need to install python packages from command prompt, in PyCharm you need to install python packages from PyCharm Project Interpreter.
Here are some tips that can help you!
Step 1: Go to PyCharm settings and go to this directory: Preferences and select Interpreter Settings
Screenshot:
Step 2: Click on this plus icon.
Screenshot:
Step 3: Type your package name and select package.
Screenshot:
Step4: Then click on install button.
Step 5: Click on okay
Then wait for two to three minutes and try again.
Hopefully it'll work.