ashamed
ashamed

Reputation: 23

ModuleNotFoundError: No module named `pyautogui`

I appreciate questions similar to this one (for VSCode and PyCharm) but I'm experiencing a problem with SublimeText with the following code:

import pyautogui, time

time.sleep(5)
f = open("text", 'r')
for word in f:
    pyautogui.typewrite(word)
    pyautogui.press("enter") 

This is the error I get:

Traceback (most recent call last):
  File "C:/Users/HP/PycharmProjects/pythonProject2/main.py", line 1, in <module>
    import pyautogui, time 
ModuleNotFoundError: No module named 'pyautogui' 

I tried googling it but I couldn't find the answer, Please help! Thank you!

Upvotes: 2

Views: 1280

Answers (1)

Jesse Taube
Jesse Taube

Reputation: 492

you need to run pip install pyautogui

Upvotes: 1

Related Questions