title: Why - after checking the python path - it still can't find my module?
body: <p>I’m having difficulty getting Python to find my pip installation of the module <code>romodel</code>. Here’s what I’ve done so far:</p>
  <ol>
  <li><p>Checked what my python path is using <code>which python</code>:</p>
  <p><code>/Users/&lt;username&gt;/opt/anaconda3/bin/python</code></p>
  </li>
  <li><p>Used that to install using pip: <code>/Users/&lt;username&gt;/opt/anaconda3/bin/python -m pip install romodel</code></p>
  </li>
  <li><p>Uninstalled the existing one (which probably didn’t change anything): <code>pip3 uninstall romodel</code></p>
  </li>
  <li><p>Started <code>python</code>, and tried to find the romodel package:</p>
  <pre><code>import romodel 
  
  Traceback (most recent call last): 
  
    File &quot;&lt;stdin&gt;&quot;, line 1, in &lt;module&gt; 
  
  ModuleNotFoundError: No module named 'romodel' 
  
  </code></pre>
  </li>
  <li><p>I made sure that the <code>romodel</code> install location is in the path:</p>
  <p><code>ls /Users/&lt;username&gt;/opt/anaconda3/lib/python3.9/site-packages/ |grep &quot;romodel&quot;</code></p>
  <p><code>romodel-0.0.1.dist-info</code></p>
  </li>
  <li><p>So, I start <code>python</code> and manually add the package location to the path:</p>
  <p><code>import sys</code></p>
  <p><code>sys.path.append('/Users/&lt;username&gt;/opt/anaconda3/lib/python3.9/site-packages/')</code></p>
  </li>
  <li><p>However, still no module found:</p>
  <pre><code>import romodel 
  
  Traceback (most recent call last): 
  
    File &quot;&lt;stdin&gt;&quot;, line 1, in &lt;module&gt; 
  
  ModuleNotFoundError: No module named 'romodel' 
  
  </code></pre>
  </li>
  </ol>
  <p>Is there something obvious that I’m missing?
  Based on the resources listed below, I would have expected the above procedure to work.</p>
  <p>I used the following resources:</p>
  <ul>
  <li><p><a href="https://realpython.com/lessons/why-cant-python-find-my-modules/" rel="nofollow noreferrer">https://realpython.com/lessons/why-cant-python-find-my-modules/</a></p>
  </li>
  <li><p><a href="https://stackoverflow.com/questions/40834656/installed-module-using-pip-not-found">Installed module using pip, not found</a></p>
  </li>
  </ul>
  <p>And my own previous question: <a href="https://stackoverflow.com/questions/39187374/how-to-correctly-uninstall-numpy-on-macosx">How to correctly uninstall numpy on MacOSX?</a></p>