title: How to fix KeyError: 'DISPLAY' in python while using pyautogui library
body: <p>I am trying to make my computer click automatically by using PyAutoGUI Library
  in Online IDE Repl.it showing <code>KeyError: 'DISPLAY'</code>, although I imported pyautogui packages correctly. How to fix this please ? help.</p>
  
  <p>When I tried in a terminal, it worked fine and in Repl.it I imported pyautogui package correctly in requirment.text but still error is occurring</p>
  
  <pre><code> import pyautogui
   import time
  
   i = 0
   while i&lt;20:
       pyautogui.click(42, 756)
       time.sleep(1)
       i += 1
  </code></pre>
  
  <pre><code>File "/home/runner/.local/lib/python3.6/site-packages/pyautogui/_pyautogui_x11.py", line 161, in &lt;module&gt;
      _display = Display(os.environ['DISPLAY'])
    File "/usr/local/lib/python3.6/os.py", line 669, in __getitem__
      raise KeyError(key) from None
  KeyError: 'DISPLAY'
  </code></pre>