User:Bjo013

From imdb
Jump to: navigation, search

Installing scipy

module load python
module load openblas
pyvenv test
source test/bin/activate
mkdir test/build
pip install -d test/build numpy
pip install -d test/build scipy
cd test/build
tar xf numpy*.tar
cd numpy*
touch site.cfg
cat <<EOF
[DEFAULT]
library_dirs = /data_bck/sw/openblas/0.2.14-gnu/lib
include_dirs = /data_bck/sw/openblas/0.2.14-gnu/include

[atlas]
atlas_libs = openblas
libraries = openblas

[openblas]
libraries = openblas
library_dirs =  /data_bck/sw/openblas/0.2.14-gnu/lib
include_dirs = /data_bck/sw/openblas/0.2.14-gnu/include
EOF > site.cfg
python setup.py install
cd ..
tar xf scipy*.tar
cd scipy*
cp ../numpy*/site.cfg .
python setup.py install