Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

How do I install numpy for python2.6?

When I installed the package python-numpy, it was installed in python2.7 (the default in Ubuntu), but not 2.6.

share|improve this question
add comment

1 Answer

If you have setuptools installed in your python2.6, you can just do

sudo easy_install2.6 numpy

which will pull the egg from pypi.python.org and will build and install it.

Alternetively, you can download .tar.gz file from here, unpack it and run

sudo python2.6 setup.py install

Due to the fact numpy contains code written in C, you will need build-essential and python-dev packages installed (the latter should be for Python 2.6)

See INSTALL.txt in the tarball for more details

share|improve this answer
    
Thanks :) I had to install python-dev2.6 –  Emad William Mar 11 '12 at 18:18
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.