You can easily build your own Python binaries and libraries by following the steps below:
cd <compilation-directory> tar jvzf Python-2.7.tar.bz2 cd Python-2.7 ./configure --enable-shared [--prefix=/your/custom/installation/path] make make test make install |
export PATH=/your/custom/installation/path/bin:$PATH export LD_LIBRARY_PATH=/your/custom/installation/path/lib:$LD_LIBRARY_PATH |
which python python -V python -c "import sqlite3" |
Then you are ready to install NumPy (see below).