title: No module named 'base' even though base.py exists
body: <p>Suppose a certain directory <a href="https://drive.google.com/drive/folders/1ST9sGqdiwAPin3OjQpjuuf75XU1IF3ed?usp=sharing" rel="nofollow noreferrer">checkerbot</a> (You can download the files). From my current directory, I have this directory called <code>checkerbot</code> which contains 4 files, i.e. <code>base.py</code>, <code>checkers.py</code>, <code>__init__.py</code> and <code>model.py</code>.</p>
  <pre><code>In [1]: import checkerbot.checkers as ck                                        
  ---------------------------------------------------------------------------
  ModuleNotFoundError                       Traceback (most recent call last)
  &lt;ipython-input-1-d7411e2bfdb5&gt; in &lt;module&gt;
  ----&gt; 1 import checkerbot.checkers as ck
  
  ~/../main/checkerbot/checkers.py in &lt;module&gt;
  ----&gt; 1 import base
        2 
        3 class Game:
        4         # Initializes the class.
        5         def __init__(self):
  
  ModuleNotFoundError: No module named 'base'
  </code></pre>
  <p>This error told me I have no <code>base.py</code> in the<code>checkerbot</code> directory, but it is false. How can I fix that? For your information, I am using python 3.7.6.</p>
  <p><strong>UPDATE</strong></p>
  <pre><code>In [2]: import .base                                                            
    File &quot;&lt;ipython-input-2-e4256d58e84b&gt;&quot;, line 1
      import .base
             ^
  SyntaxError: invalid syntax
  </code></pre>
  <p>Suppose my current directory is <code>main</code> and <code>checkerbot</code> is in <code>main/</code>. If I run <code>ipython</code> and then <code>from . import base</code> then I got :</p>
  <pre><code>In [1]: from . import base                                                      
  ---------------------------------------------------------------------------
  ImportError                               Traceback (most recent call last)
  &lt;ipython-input-1-a8bda1f23f19&gt; in &lt;module&gt;
  ----&gt; 1 from . import base
  
  ImportError: attempted relative import with no known parent package
  </code></pre>
  <p>Another error :</p>
  <pre><code>In [5]: from checkerbot import base                                             
  ---------------------------------------------------------------------------
  ModuleNotFoundError                       Traceback (most recent call last)
  &lt;ipython-input-5-3203dc774184&gt; in &lt;module&gt;
  ----&gt; 1 from checkerbot import base
  
  ~/../main/checkerbot/base.py in &lt;module&gt;
        1 import tensorflow as tf
        2 import numpy as np
  ----&gt; 3 from model import model
        4 
        5 agent = tf.keras.models.Sequential()
  
  ModuleNotFoundError: No module named 'model'
  </code></pre>