Cannot import installed python package
<p>I'm trying to install <strong>python-numpy</strong> package on my ubuntu 14.04 machine. I ran <code>sudo apt-get install python-numpy</code> command to install it and it says the package has been installed but when i try to access it, i'm unable to do so. </p>

<p><a href="http://i.stack.imgur.com/HFgza.png" rel="nofollow"><img src="http://i.stack.imgur.com/HFgza.png" alt="enter image description here"></a></p>

<p>When you type:</p>

<pre><code>sudo pip install package-name
</code></pre>

<p>It will default install <strong>python2</strong> version of package-name some packages might be supported in both python3 and python3 some might work might not</p>

<p>I would suggest</p>

<pre><code>sudo apt-get install python3-pip
sudo pip3 install MODULENAME
</code></pre>

<p>or can even try this</p>

<pre><code>sudo apt-get install curl
curl https://bootstrap.pypa.io/get-pip.py | sudo python3
sudo pip3 install MODULENAME
</code></pre>

<p>Many python packages require also the dev package, so install it too:</p>

<pre><code>sudo apt-get install python3-dev
</code></pre>

<p>Also check for the sys.path [ make sure module is in the python path ]</p>

python