I was able to successfully execute the following commands -
sudo apt-get install scrot
sudo apt-get install python3-tk
sudo apt-get install python3-dev
But this one "python3 -m pip install pyautogui" gives the following output -
<div>
amnesia@amnesia:~$ python3 -m pip install pyautogui
Collecting pyautogui
Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f493b7215f8>: Failed to establish a new connection: [Errno 111] Connection refused')': /simple/pyautogui/
Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f493b7216a0>: Failed to establish a new connection: [Errno 111] Connection refused')': /simple/pyautogui/
Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f493b721940>: Failed to establish a new connection: [Errno 111] Connection refused')': /simple/pyautogui/
Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f493b721b70>: Failed to establish a new connection: [Errno 111] Connection refused')': /simple/pyautogui/
Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f493b721c88>: Failed to establish a new connection: [Errno 111] Connection refused')': /simple/pyautogui/
Could not find a version that satisfies the requirement pyautogui (from versions: )
No matching distribution found for pyautogui
amnesia@amnesia:~$
</div>
Any suggestions?