Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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

sudo easy_install2.6 numpy

which will pull the egg from and will build and install it.

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

sudo python2.6 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

Your Answer


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.