title: Error importing Python libraries installed with PIP inside Eclipse
body: <p>I'm using Python 2.7.5 64 bits and I have a problem when importing libraries that were installed via PIP when importing them inside Eclipse (version 4.3.1). Outside Eclipse (directly in Python's shell) everything works fine, here is an example:</p>
  
  <pre><code>&gt;&gt;&gt; import numpy                             # installed from repositories
  &gt;&gt;&gt; from numpy import array
  &gt;&gt;&gt; import pybrain                           # installed via PIP
  &gt;&gt;&gt; from pybrain import Network
  &gt;&gt;&gt;
  </code></pre>
  
  <p>Everything works outside Eclipse. But inside Eclipse I can't import libraries installed via PIP using "from x import y" format, it will give an error. The only way I can import libraries installed via PIP is using "import x" format. Here is an example:</p>
  
  <pre><code>import numpy                                     # no errors (installed from repositories)
  from numpy import array                          # no errors
  import pybrain                                   # no errors (installed via PIP)
  from pybrain import Network                      # gives the error below
  
  Traceback (most recent call last):
    File "/media/arquivos/pybrain_import_test.py", line 4, in &lt;module&gt;
      from pybrain import Network
  ImportError: cannot import name Network
  </code></pre>
  
  <p>I suspected it could be related to <strong>virtualenv</strong>, but here is a <a href="http://imageshack.com/a/img534/4307/3x0m.png" rel="nofollow">print screen</a> of my Python's PATH. The directory <em>/usr/lib/python2.7/site-packages</em> where PyBrain is installed is already in Python's PATH inside Eclipse. Could someone help me, please?</p>
  
  <p>EDIT: it's solved now, read my comment below to see the solution.</p>