6

pip install <package> command is working for me, I tried installing selenium package it is working in my setup but when I try to install pyautogui, it does not work. Screenshots below. What could be wrong here:

WORKS: enter image description here

DOES NOT WORK, Error:

←[31mCommand "python setup.py egg_info" failed with error code 1 in c:\users\homepc\appdata\local\temp\pip-build-q631su\pyscreeze←[0m

enter image description here

user1406716
  • 9,565
  • 22
  • 96
  • 151
  • 2
    Try: `pip install Pillow` – Malik Brahimi Dec 29 '15 at 00:56
  • That worked. I take it that `Pillow` is a requirement here? If you could add explanation as answer - will mark it as the answer then. – user1406716 Dec 29 '15 at 01:02
  • there are some packages that requires before installing the Pyautogui, refer to below link and follow instruction for your OS: https://pyautogui.readthedocs.io/en/latest/install.html – Ali Taheri Jun 19 '18 at 07:25

2 Answers2

12

The error message is just as it reads. You need the Pillow port of the PIL library as a dependency:

pip install Pillow # a popular port of the Python Imaging Library, which is needed here
Malik Brahimi
  • 16,341
  • 7
  • 39
  • 70
0

I resolved the problem by using the command pip3 install pyautogui from the console terminal window of the workstation. The cause of the error is that before doing that I was trying to use an SSH terminal window to install the software remotely. The SSH terminal window environment does not support a window system.