SciPy
Manual Install
Please see this link
http://confluence.rcs.griffith.edu.au:8080/display/GHPC/python-lapack-atlas-sparse-numpy-scipy-matplotlib
Old Notes
# cd /usr/local/src # wget http://cdnetworks-us-2.dl.sourceforge.net/project/scipy/scipy/0.9.0/scipy-0.9.0.tar.gz # tar xzvf scipy-0.9.0.tar.gz # cd scipy-0.9.0 create site.cfg in numpy cd /usr/share/doc/numpy-1.3.0/ cp site.cfg.example site.cfg vi /usr/share/doc/numpy-1.3.0/site.cfg >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> [DEFAULT] library_dirs = /usr/local/atlas/lib include_dirs = /usr/local/atlas/include [atlas] atlas_libs = lapack, f77blas, cblas, atlas >>>>>>>>>>>>>>>>>>>>>> # python setup.py build 2>&1 | tee log.build # python setup.py install --prefix=/usr/local/scipy-0.9.0rc3 2>&1 | tee log.install # cd /usr/local ; ln -s scipy-0.9.0rc3 scipy
Installation ???????????
Install on Admin
yum install scipy Loaded plugins: refresh-packagekit, rhnplugin Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package numpy.x86_64 0:1.3.0-6.2.el6 will be installed --> Processing Dependency: python-nose for package: numpy-1.3.0-6.2.el6.x86_64 --> Processing Dependency: liblapack.so.3()(64bit) for package: numpy-1.3.0-6.2.el6.x86_64 --> Processing Dependency: libatlas.so.3()(64bit) for package: numpy-1.3.0-6.2.el6.x86_64 --> Processing Dependency: libptf77blas.so.3()(64bit) for package: numpy-1.3.0-6.2.el6.x86_64 --> Processing Dependency: libptcblas.so.3()(64bit) for package: numpy-1.3.0-6.2.el6.x86_64 --> Running transaction check ---> Package atlas.x86_64 0:3.8.3-12.4.el6 will be installed ---> Package python-nose.noarch 0:0.10.4-3.1.el6 will be installed --> Processing Dependency: python-setuptools for package: python-nose-0.10.4-3.1.el6.noarch --> Running transaction check ---> Package python-setuptools.noarch 0:0.6.10-3.el6 will be installed --> Finished Dependency Resolution Dependencies Resolved ============================================================================================================================================================================================================================================= Package Arch Version Repository Size ============================================================================================================================================================================================================================================= Installing: numpy x86_64 1.3.0-6.2.el6 Red-Hat-Enterprise-Linux-6 1.6 M Installing for dependencies: atlas x86_64 3.8.3-12.4.el6 Red-Hat-Enterprise-Linux-6 2.8 M python-nose noarch 0.10.4-3.1.el6 Red-Hat-Enterprise-Linux-6 220 k python-setuptools noarch 0.6.10-3.el6 Red-Hat-Enterprise-Linux-6 336 k Transaction Summary ============================================================================================================================================================================================================================================= Install 4 Package(s) Total download size: 5.0 M Installed size: 19 M
RPM install on base image
mount --bind /proc/ /compute/proc/ mount --bind /dev /compute/dev yum --installroot=/compute/ install numpy umount /compute/dev umount /compute/proc
Install on all nodes (n001-n023)
Â
Manual Install
http://www.scipy.org/Installing_SciPy/Linux
http://www.scipy.org/Download
scipy-0.9.0.tar
Installation Location: /usr/lib64/python2.6/site-packages/scipy
SciPy install
mkdir /tmp/scipy cd /tmp/scipy cp /tmp/scipy-0.9.0.tar.gz . tar -zxvf scipy-0.9.0.tar.gz cd /tmp/scipy/scipy-0.9.0 module load ATLAS/3.8.3 module load nose/1.0.0 python setup.py build python setup.py build --fcompiler=gnu95 install --prefix=/tmp/scipy/scipy-0.9.0 *Read the INSTALL.txt* (we will use gfortran since atlas/bas were compiled using gfortran) The installation prefix (-prefix) is required only if you want to install sciPy in a location different from your Python installation directory (e.g. you are using the default Python executable provided by your system but you do not have root permissions). In this case (only), you will have to fill the $PYTHONPATH environment variable to indicate where Python can find SciPy. In the other cases, Python will install the module into its own installation directory, which is fine in particular when you are using a custom installation of Python. In this case you will also not have to augment the $PYTHONPATH since the module is installed in a standard location known by Python. To see a valid list of <Vendor> names, run:: python setup.py config_fc --help-fcompiler
Â
usage
TESTING
=======
To test SciPy after installation (highly recommended), execute in Python
>>> import scipy
>>> scipy.test()
To run the full test suite use
>>> scipy.test('full')
scipy on python 2.7.1-shared
mkdir /tmp/scipy cd /tmp/scipy cp /tmp/scipy-scipy-0.10.0.tar.gz . tar -zxvf scipy-scipy-0.10.0.tar.gz cd /tmp/scipy/scipy-0.10.0 module load ATLAS/3.8.3 module load nose/1.0.0 python setup.py build python setup.py build --fcompiler=gnu95 install --prefix=/sw/python/2.7.1-shared/ *Read the INSTALL.txt* (we will use gfortran since atlas/bas were compiled using gfortran) The installation prefix (-prefix) is required only if you want to install sciPy in a location different from your Python installation directory (e.g. you are using the default Python executable provided by your system but you do not have root permissions). In this case (only), you will have to fill the $PYTHONPATH environment variable to indicate where Python can find SciPy. In the other cases, Python will install the module into its own installation directory, which is fine in particular when you are using a custom installation of Python. In this case you will also not have to augment the $PYTHONPATH since the module is installed in a standard location known by Python. To see a valid list of <Vendor> names, run:: python setup.py config_fc --help-fcompiler