title: Installing Django on MAC error msg "Command "python setup.py egg_info" failed with error code 1 in /private/tmp/pip-build-2yOWor/django/"
body: <p>I am trying to install Django 2.0 on my Macbook on Sierra 10.12.6, with Python 2.7.14 using virtualenv but I keep getting this error code at the bottom:</p>
  
  <p>(sorry in advance, I'm new here so not sure how to make it more user-friendly to read so also attached a screenshot below)</p>
  
  <pre class="lang-none prettyprint-override"><code>Joeys-MBP:somename joeybaloney$ pip install django
  Collecting django
    Using cached Django-2.0.tar.gz
      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/wj/jbbqxb5d6ld9q00gw73mjzp00000gn/T/pip-build-QicGdd/django/setup.py", line 32, in &lt;module&gt;
          version = __import__('django').get_version()
        File "django/__init__.py", line 1, in &lt;module&gt;
          from django.utils.version import get_version
        File "django/utils/version.py", line 61, in &lt;module&gt;
          @functools.lru_cache()
      AttributeError: 'module' object has no attribute 'lru_cache'
  
      ----------------------------------------
  Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/wj/jbbqxb5d6ld9q00gw73mjzp00000gn/T/pip-build-QicGdd/django/
  </code></pre>
  
  <p>I've tried almost every solution here on Stackoverflow such as updating tools, using sudo pip install but nothing seems to work.</p>
  
  <p>Terminal screenshot: <a href="https://i.stack.imgur.com/8bT1Y.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8bT1Y.png" alt="enter image description here"></a></p>