title: ImportError: No module named ... in Colab google
body: <p>I'm following the tutorial <a href="https://hackernoon.com/object-detection-in-google-colab-with-custom-dataset-5a7bb2b0e97e" rel="nofollow noreferrer">here</a> (Object Detection in Google Colab with Custom Dataset). The first line of the notebook is a git clone of the tensorflow models:</p>
  
  <pre><code>!git clone --quiet https://github.com/tensorflow/models.git
  </code></pre>
  
  <p>After, they set the PYTHONPATH variable to be sure we can import models. </p>
  
  <pre><code>os.environ['PYTHONPATH'] += ':/content/models/research/:/content/models/research/slim/'
  </code></pre>
  
  <p>If I try at this stage to import a model</p>
  
  <pre><code>from nets import inception_resnet_v2 
  </code></pre>
  
  <p>I get the error:</p>
  
  <pre><code>ImportError: No module named nets
  </code></pre>
  
  <p>I checked and nets folder and nets/inception_resnet_v2.py file are there (in models/research/slim folder). I suspect that it's related to the colab naming convention because the pwd command gives:</p>
  
  <pre><code>/root/models/research
  </code></pre>
  
  <p>I substituted content for root in the above command but it does not work either. Someone <a href="https://stackoverflow.com/questions/53599174/importerror-no-module-named-object-detection-builders-in-colab-google">here</a> posted a similar question but the only answer refers to tensorflow issue <a href="https://github.com/tensorflow/models/issues/1832" rel="nofollow noreferrer">1832</a> which is not the problem here. Can someone help? </p>
  
  <p>EDIT: operating system is Linux-4.14.79+-x86_64-with-Ubuntu-18.04-bionic</p>