2

I use Python 2.7 on a windows 7. I use pycharm and IDLE. I was trying out pyautogui for some automatic mouse movements, but the program returned that puautogui as not defined. I have read online that pyautogui doesnot require any additional packages in windows.

I typed import pyautogui in IDLE and it turned up an error. Can u help ?

Python 2.7.10 (default, May 23 2015, 09:40:32) [MSC v.1500 32 bit          (Intel)] on win32
Type "copyright", "credits" or "license()" for more information.
>>> import pyautogui

Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
import pyautogui
ImportError: No module named pyautogui
>>> 
  • Just to be clear: it sounds like you did not install pyautogui... if that's not true, how did you install it? – Foon Jul 26 '15 at 13:23

2 Answers2

2

To install PyAutoGUI, install the pyautogui package from PyPI and dependencies.

On Windows for Python 2.7, this is:

C:\Python27\python.exe -m pip install pyautogui
Al Sweigart
  • 11,566
  • 10
  • 64
  • 92
Sentient07
  • 1,270
  • 1
  • 16
  • 24
-1

it is saing that pyautogui couldn't be found b y the interpreter... are you sure you installed it....

if no..... first type pip uninstall PyautoGUI and then please type pip install PyautoGUI in CMD or Powershell

for more information go to : https://pypi.org/project/PyAutoGUI/

Dharman
  • 30,962
  • 25
  • 85
  • 135
Prakhar Parikh
  • 177
  • 2
  • 13