Freitag, 17. Januar 2014

Installing numpy with pip

I am working on a university cluster and getting software installed the way it is done on my personal system, using debian/ubuntu package management, is always a tedious process as is involves various steps of permissions from senior staff.

When I started using python more frequently it was pretty easy to set up a virtual environment using virtualenv. But when I ran pip install numpy and tried to import it in the interpreter a certain library (libopenblas) was not accessible from my user account. It was softlinked to the /usr/lib directory so pip found it and used it for compilation but it wasnt readable.

Only after setting up ~/site.cfg (not ~/.numpy-site.cfg as mentioned in the documentation) the false libopenblas wa ignored

[openblas]
libraries =
library_dirs =