multiple numpy version on Mac OS X
Question: I am running Mac OS X 10.8.4.

Python 2.7 is installed by installing command line tools in Xcode.

Apple is managing a version of numpy (1.6.1) located at

    
    
    /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/numpy
    

I use

    
    
    sudo easy_install numpy 
    

to install a version (1.7.x). It is put at location

    
    
    /Library/Python/2.7/site-packages
    

In python, when

    
    
    import numpy
    

it actually imports the 1.6.1 one (managed by apple).

Howe can I choose the 1.7.x one installed by `easy_install`?


Answer: Use == to specify the version:

    
    
    easy_install numpy==1.6
    

I prefer pip:

    
    
    easy_install pip
    pip install numpy==1.6
    

EDIT: To make use of multiple installed versions of a package you could use
[virtualenv](http://www.virtualenv.org/) assuming you don't need multiple
versions of the package within the same project

[source](http://shtuff.it/article/14/Python_-
_install_specific_version_with_pip_or_easy_install)

