title: Pydev on Eclipse running wrong (deleted) file which shadowed numpy library
body: <p>I just committed a major noob blunder while playing around with basic functionalities of NumPy. I created a small file called "numpy.py" just so that play around with problems related to numpy. I could also later come back for reference - and the name would have helped. Obvious error :-</p>
  
  <pre><code>import numpy
    File "C:\Users\USERNAME\workspace\StackOverflow\python\numpy.py", line 25, in &lt;module&gt;
  AttributeError: 'module' object has no attribute 'random'
  </code></pre>
  
  <p>I realized the problem - python was considering my current code as actual numpy and looking for random. I deleted that file and created a new one.</p>
  
  <p>And the problem persists. This image explains it better than my words would.
  <img src="https://i.stack.imgur.com/PxHOQ.jpg" alt="enter image description here"></p>
  
  <p>Now there's a completely new file with a different name - but still it's looking for some methods in the deleted file. </p>
  
  <p>I've already tried:</p>
  
  <ul>
  <li>Cleaning the Project </li>
  <li>Restarting Eclipse</li>
  <li>Run another .py (successfully) and then this one again</li>
  <li>Removed all the conflicting files, created a totally new file. Still same. If the program contains <strong>import numpy</strong>, it would give same error.</li>
  </ul>
  
  <p>I'd like to know (1) What actually happened wrong here? Why is eclipse so confused (2) How to resolve? (3) What are the best practices in such situations? </p>