Use numpy in python3 - Ubuntu
Question: I'm trying to use `numpy` with `python3` in Ubuntu 12.04. The command
`python3` in the terminal returns:

    
    
    Python 3.2.3 (default, Oct 19 2012, 20:13:42) 
    [GCC 4.6.3] on linux2
    

When I try to import `numpy` I get the error:

    
    
        import numpy as np
    ImportError: No module named numpy
    

So I tried to install it with:

    
    
    sudo pip install numpy
    

which returns:

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

So it is installed but for python2.7 and apparently I need to install `numpy`
for python3. If I do:

    
    
    sudo pip install upgrade
    

I get:

    
    
        Could not find any downloads that satisfy the requirement upgrade
    No distributions at all found for upgrade
    

I've tried the solution posted
[here](http://stackoverflow.com/questions/16096143/why-doesnt-numpy-import-in-
idle-3-30-on-ubuntu-12-10-64-bit?rq=1), namely doing:

    
    
    sudo apt-get install python3-pip
    

which is not found. I've also gone
[here](https://pypi.python.org/pypi/numpy/1.7.1) but I only see Windows
versions available for download for python3.


Answer: If you want to install it from Ubuntu repositories, which is easier, but the
version is older, try

    
    
    sudo apt-get install python3-numpy
    

If you want it via `pip`, you should probably start with

    
    
    sudo apt-get install python3-setuptools
    

and then you'll have something like `easy_install-3.2` which you can use to

    
    
    sudo easy_install pip
    

and then

    
    
    sudo pip-3.2 install numpy
    

