Import error for pyautogui

I have correctly installed the pyautogui module and dependencies via pip-3.2 on my raspi, but when I try to do

import pyautogui

      

I am getting import error:

ImportError: No module named pyautogui

      

What am I doing wrong? Has the team changed? Sorry to be a complete python Noob, any help is greatly appreciated: D

+6


source to share


3 answers


It might be because you are trying to use it from the python 2.x shell. Try this command on python3 shell instead and try importing it.



+9


source


True, you will have to use python 3. First you need to make sure you check the system path variable when installing python 3. Then open a command prompt in Windows and type

pip install pyautogui 

      

or



pip3 install pyautogui

      

on OSX and Linux.

+3


source


Search in C: \ Python37-32 \ Lib \ site-packages (Wherever you install it). Check if you have pyautogui directory .

If YES , then there is a configuration issue with pycharm or IDLE .

If NO then

  • Open command prompt
  • CD C:\Python37-32\Scripts

  • pip install pillow

  • pip install pyautogui

Check the successfully installed answer.

HAPPY CODING! :)

0


source







All Articles