title: ModuleNotFoundError: No module named... importing from a sub-sub directory
body: <p>I'm unable to import modules from a subfolder which imports a module from a sub-sub folder. I'm using python 3.6.</p>
  
  <p>The structure of the folders look like this:</p>
  
  <pre><code>src
  ├── script.py
  └── prepare_data
            ├── __init__.py
            ├── test.py      
            └── lib
                 ├── aspect_extraction.py
                 └── __init__.py
  </code></pre>
  
  <p>And in <code>aspect_extraction.py</code> I do:</p>
  
  <pre><code>def aspect_extraction():
      print("ok this worked")
  </code></pre>
  
  <p><code>test.py</code> looks like this:</p>
  
  <pre><code>from lib.aspect_extraction import aspect_extraction
  def test_func():
      aspect_extraction()
  
  test_func()
  </code></pre>
  
  <p><code>script.py</code> looks like this:</p>
  
  <pre><code>from prepare_data.test import test_func
  test_func()
  </code></pre>
  
  <p>When I run <code>pipenv run python src/script.py</code></p>
  
  <pre><code>File "/src/prepare_data/test.py", line 1, in &lt;module&gt;
  from lib.aspect_extraction import aspect_extraction
  ModuleNotFoundError: No module named 'lib'
  </code></pre>
  
  <p>Weirdly, when I run <code>pipenv run python src/prepare_data/test.py</code>, it works.</p>
  
  <pre><code>ok this worked
  </code></pre>
  
  <p>I cannot identify what the problem is... Is this related to python version? </p>