0

When I install Pyautogui through the Python -m pip install pyautogui it goes through and download. But when I run my code which contains import Pyautogui I get this:

Traceback (most recent call last):
  File "C:/Users/kalle/.PyCharmCE2018.3/config/scratches/ytbot.py", line 9, in <module>
    import pyautogui
ModuleNotFoundError: No module named 'pyautogui'
DavidG
  • 19,281
  • 13
  • 70
  • 71
KalleL
  • 1
  • Have you got multiple versions of Python installed on your machine? – DavidG Jan 30 '19 at 15:49
  • This `Python -m pip install...` is Python 2.x. Use `Python -m pip3 install...` as you have taged `[python-3.x]` – stovfl Jan 30 '19 at 16:30
  • @stovfl Tried this but it said no module named pip3 in windows powershell – KalleL Jan 30 '19 at 20:21
  • @KalleL: Read [how-do-i-install-pip-on-windows](https://stackoverflow.com/questions/4750806/how-do-i-install-pip-on-windows) – stovfl Jan 30 '19 at 20:23

0 Answers0