title: pip3 install pyautogui fails with error code 1 Mac OS
body: <p>I tried installing the autogui python extension:</p>
  
  <pre><code>pip3 install pyautogui
  </code></pre>
  
  <p>And this installation attempt results in the following error message:</p>
  
  <pre><code>Collecting pyautogui
    Using cached PyAutoGUI-0.9.33.zip
      Complete output from command python setup.py egg_info:
      Traceback (most recent call last):
        File "&lt;string&gt;", line 1, in &lt;module&gt;
        File "/private/var/folders/00/zcr6mkx90hg7kr4x_ks6nhhw0000gn/T/pip-build-edy15oyn/pyautogui/setup.py", line 6, in &lt;module&gt;
          version=__import__('pyautogui').__version__,
        File "/private/var/folders/00/zcr6mkx90hg7kr4x_ks6nhhw0000gn/T/pip-build-edy15oyn/pyautogui/pyautogui/__init__.py", line 110, in &lt;module&gt;
          from . import _pyautogui_osx as platformModule
        File "/private/var/folders/00/zcr6mkx90hg7kr4x_ks6nhhw0000gn/T/pip-build-edy15oyn/pyautogui/pyautogui/_pyautogui_osx.py", line 4, in &lt;module&gt;
          import Quartz
        File "/usr/local/lib/python3.5/site-packages/Quartz/__init__.py", line 5, in &lt;module&gt;
          import objc
        File "/usr/local/lib/python3.5/site-packages/objc/__init__.py", line 18, in &lt;module&gt;
          _update()
        File "/usr/local/lib/python3.5/site-packages/objc/__init__.py", line 15, in _update
          import objc._objc as _objc
      ImportError: dlopen(/usr/local/lib/python3.5/site-packages/objc/_objc.cpython-35m-darwin.so, 2): Symbol not found: _PyObject_REPR
        Referenced from: /usr/local/lib/python3.5/site-packages/objc/_objc.cpython-35m-darwin.so
        Expected in: flat namespace
       in /usr/local/lib/python3.5/site-packages/objc/_objc.cpython-35m-darwin.so
  
      ----------------------------------------
  Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/00/zcr6mkx90hg7kr4x_ks6nhhw0000gn/T/pip-build-edy15oyn/pyautogui
  </code></pre>
  
  <p>My Mac OS version is OS X El Capitan 10.11.3, my Python3 version is 3.5.1, and my pip3 version is pip 8.0.2.</p>
  
  <p>There seems to be a similar question on Stackoverflow (<a href="https://stackoverflow.com/questions/34502965/cannot-install-pip-install-pyautogui-error-code-1">Cannot install pip install pyautogui, error code 1</a>), but the fix does not apply to my problem; I have already installed "pillow". Also, I have read the documentation (<a href="https://pypi.python.org/pypi/PyAutoGUI" rel="nofollow noreferrer">https://pypi.python.org/pypi/PyAutoGUI</a>), and installed pyobjc-core as well as pyobjc. Setuptools are installed and up-to-date.</p>
  
  <p>Does anyone have an idea how to fix this error (and install pyautogui)? I think the error might originate, because <a href="https://bitbucket.org/ronaldoussoren/pyobjc/issues/137/symbol-not-found-_pyobject_repr-on-python" rel="nofollow noreferrer">_PyObject_REPR is missing in Python 3.5.1</a>.</p>