title: ModuleNotFoundError error with PyCharm project folder recs
body: <p>I am working on a project in PyCharm.  The project has the following structure:</p>
  
  <pre><code>/projectRoot/
     folder1/
         somecode.py
     utils/
         __init__.py
         myutils1.py
  </code></pre>
  
  <p>I'd want to know how I can do an import such that the import works when running the code in the pyCharm console in an interactive manner, as well as when running the code using the </p>
  
  <pre><code>python somecode.py 
  </code></pre>
  
  <p>command in the terminal.</p>
  
  <p>Currently I do:</p>
  
  <p><code>from utils.myutils1.py import myClass</code></p>
  
  <p>But command line I get the error:</p>
  
  <blockquote>
    <p>File "somecode.py", line 10, in 
        from utils.myutils1 import myClass ModuleNotFoundError: No module named 'utils'</p>
  </blockquote>
  
  <p>and on PyCharm:</p>
  
  <blockquote>
    <p>Traceback (most recent call last):   File
    "/home/ubuntu/anaconda3/lib/python3.6/site-packages/IPython/core/interactiveshell.py",
    line 2881, in run_code
        exec(code_obj, self.user_global_ns, self.user_ns)   File "", line 1, in 
        from utils.myutils1 import myClass ModuleNotFoundError: No module named 'utils'</p>
  </blockquote>
  
  <p>Any recommendations on the proper folder structure for modules within a project, and how to import them properly?</p>
  
  <p>Thanks!</p>