How to install PyAutoGUI

19,030

Solution 1

Found an answer to the problem

On Linux, this is:

sudo pip3 install python3-xlib

sudo apt-get install scrot

sudo apt-get install python3-tk

sudo apt-get install python3-dev

sudo pip3 install pyautogui

ta daaaa :D

Solution 2

Now im using Ubuntu 14.04, but I would try installing the problematic module pyscreeze with:

sudo pip3 install pyscreeze

I personally got another error about missing module called PIL

sudo pip3 install pillow

And then i got some error message about jpeg ValueError: jpeg is required unless explicitly disabled using --disable-jpeg, aborting

I hope you'll have more luck.

Share:
19,030
audma
Author by

audma

Updated on June 28, 2022

Comments

  • audma
    audma almost 2 years

    I am running OS X El Capitan v. 10.11.3

    I am trying to install PyAutoGUI

    On Terminal, I did the following successfully:

    sudo pip3 install pyobjc-core  
    sudo pip3 install pyobjc
    

    When I tried running "sudo pip3 install pyautogui" I got the following error in Terminal:

    Command "python setup.py egg_info" failed with error code 1 in /private/tmp/pip-build-skuvquyu/pyscreeze

    I am not sure what to do about this so if anyone has any advice, I would appreciate it.

    Thanks

  • Nathan Tuggy
    Nathan Tuggy almost 7 years
    Windows, eh? Question is asking about OS X. Certainly these instructions cannot possibly be used as-is.
  • rocksyne
    rocksyne almost 6 years
    Thank you. This was really helpful!
  • Franco M
    Franco M over 5 years
    I'm Happy that helps ;)