Install numpy for python 2.7 and not 3.4
<p>I have been literally struggling to install numpy for python 2.7 and not 3.4 both of which are on my ubuntu. I have tried:</p>

<p>sudo pip2 install numpy</p>

<p>but it says </p>

<pre><code>Requirement already satisfied (use --upgrade to upgrade): numpy in /usr/lib/python2.7/dist-packages
</code></pre>

<p>but when I go to the python shell, and type <code>import numpy</code>, it throws an <code>ImportError</code></p>

<pre><code>python --version prints `Python 2.7.5`
</code></pre>

<p>I have no idea what the problem is even after looking at various answers to other SO questions. Is numpy installed and I'm not able to use it for some reason or isn't it installed? Please help.</p>