title: Not a package error even if I had a __init__.py in it
body: <p>I am doing a project on a Macbook, its system is OS X 10.11.5. I used Python 3.5 and had a directory like this </p>
  
  <pre><code>rec-par/
      rec/
          __init__.py
          cle/
              __init__.py
              c.py
          par/
              __init__.py
              b.py
          util/
              __init__.py
              a.py
  </code></pre>
  
  <p>in <code>a.py</code> there is a <code>import</code> like</p>
  
  <pre><code>from rec.par.b import *
  </code></pre>
  
  <p>And it got a error like <code>'No module name rec.par , rec is not a package'</code>. I have added the path 'rec-par' to the sys.path and in <code>cle/c.py</code> there is no error with the same import command.</p>
  
  <p>I tried the methods given in Question <a href="https://stackoverflow.com/questions/11536764/attempted-relative-import-in-non-package-even-with-init-py">How to fix &quot;Attempted relative import in non-package&quot; even with __init__.py</a>,
  used <code>python3 -m a.py</code> . But it didn't work.</p>
  
  <p>Is there anything I missing here?</p>