title: ImportError: No module named celery for Celery 3.1 and Python 2.7
body: <p>Using Python 2.7 and Celery 3.1.25 on Windows, when we run the Celery worker using</p>
  
  <pre><code>celery -A proj worker -l info
  </code></pre>
  
  <p>we get the error</p>
  
  <pre><code>ImportError: No module named celery
  </code></pre>
  
  <p><strong>Problem:</strong> The worker stops working when we </p>
  
  <ul>
  <li>changed the name of the file <code>celeryApp.py</code> from <code>celery.py</code> </li>
  <li>changed the import statement in <code>tasks.py</code> from <code>from .celery import app</code> to <code>from celeryApp import app</code>.</li>
  </ul>
  
  <p>Why is this happening? How can we fix the problem?</p>
  
  <p><strong>Directory structure</strong></p>
  
  <pre><code>/proj/__init__.py
  /proj/celeryApp.py
  /proj/tasks.py
  </code></pre>
  
  <p><strong>/proj/celeryApp.py</strong></p>
  
  <pre><code>from __future__ import absolute_import, unicode_literals
  from celery import Celery
  
  app = Celery('tasks', 
      broker='amqp://jack:jack@192.168.1.26:5672//',
      backend='amqp://',
      include=['proj.tasks'])
  
  if __name__ == '__main__':
      app.start()
  </code></pre>
  
  <p><strong>/proj/tasks.py</strong></p>
  
  <pre><code>from __future__ import absolute_import, unicode_literals
  from celeryApp import app
  
  @app.task
  def add(x, y):
      return x + y
  </code></pre>