pip install command is working for me, I tried installing selenium package it is working in my setup but when I try to install
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.
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