Python3.4 - Install pyautogui - Raspberry Pi 3
<p>I've been trying to install pyautogui for Python 3.4 on my Raspberry Pi 3 for the last 2 hours... I need it because I wrote a touch keyboard application that needs to run on it. On my main machine (elementary OS 0.4 with Python 3.5) I was able to install it without any problems. First I tried <code>sudo pip install pyautogui</code> but that only installed the Python 2.7 version of pyautogui. Of course next I tried <code>sudo pip3 install pyautogui</code> but that gave me this error:</p>

<pre><code>  Running setup.py (path:/tmp/pip-build-hf289jja/pyautogui/setup.py) egg_info for package pyautogui
Traceback (most recent call last):
      File "&lt;string&gt;", line 17, in &lt;module&gt;
  File "/tmp/pip-build-hf289jja/pyautogui/setup.py", line 6, in &lt;module&gt;
    version=__import__('pyautogui').__version__,
  File "/tmp/pip-build-hf289jja/pyautogui/pyautogui/__init__.py", line 114, in &lt;module&gt;
    from . import _pyautogui_x11 as platformModule
  File "/tmp/pip-build-hf289jja/pyautogui/pyautogui/_pyautogui_x11.py", line 6, in &lt;module&gt;
    from Xlib.display import Display
  File "/usr/local/lib/python3.4/dist-packages/Xlib/display.py", line 20, in &lt;module&gt;
    import new
ImportError: No module named 'new'
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
</code></pre>

<p>File "", line 17, in </p>

<p>File "/tmp/pip-build-hf289jja/pyautogui/setup.py", line 6, in </p>

<pre><code>version=__import__('pyautogui').__version__,
</code></pre>

<p>File "/tmp/pip-build-hf289jja/pyautogui/pyautogui/<strong>init</strong>.py", line 114, in </p>

<pre><code>from . import _pyautogui_x11 as platformModule
</code></pre>

<p>File "/tmp/pip-build-hf289jja/pyautogui/pyautogui/_pyautogui_x11.py", line 6, in </p>

<pre><code>from Xlib.display import Display
</code></pre>

<p>File "/usr/local/lib/python3.4/dist-packages/Xlib/display.py", line 20, in </p>

<pre><code>import new
</code></pre>

<p>ImportError: No module named 'new'</p>

<hr>

<p>Cleaning up...
Command python setup.py egg_info failed with error code 1 in /tmp/pip-build-hf289jja/pyautogui
Storing debug log for failure in /root/.pip/pip.log</p>

<hr>

<p>... sorry for the formatting of the above, I couldn't get it to stay inside one code box. </p>

<p>I have no idea what module "new" is. I tried everything else under the sun, such as installing from the official resources: <a href="https://pypi.python.org/pypi/PyAutoGUI" rel="nofollow">https://pypi.python.org/pypi/PyAutoGUI</a> and various other guides, with NO results.. I'm kinda loosing my mind right now.</p>

<p>ANY Help is grately appreciated :)</p>