title: ModuleNotFoundError: No module named - Python
body: <p>Can someone please help with this error? I have tried all sort of ways to import a module in Python but not has worked so far. I have this directory structure below:</p>
  <pre><code>|__folder1:
  |      |__folder1a
  |          |___inner_file.py
  |__outer_file.py
  </code></pre>
  <p>I want to import a Class from the <code>outer_file.py</code> into the <code>inner_file.py</code>. However, I have been getting the error <code>ModuleNotFoundError: No module named</code>.</p>
  <p>I have tried all the options in this link on <a href="https://www.geeksforgeeks.org/python-import-module-outside-directory/" rel="nofollow noreferrer">GeeksforGeeks</a>. Thanks.</p>