How to upgrade SciPy on Fedora 23

As it was with Fedora 22, the Fedora 23 still ships with SciPy version 0.14.1. To upgrade SciPy please run the following commands as root:

dnf install python-pip
dnf install blas-devel
dnf install lapack-devel
dnf install gcc-c++
dnf groupinstall "Development Tools"

If you now try to upgrade scipy you will get the following error
g++: error: /usr/lib/rpm/redhat/redhat-hardened-cc1: No such file or directory

On Fedora 23 one has also to install rpm-build to avoid errors during compilation of scipy:
dnf search rpm-build

Finally uninstall scipy 0.14.1, download 0.16.0, compile it and install. All with the following command:
pip install --upgrade scipy

Installing libsbml with python support on Debian wheezy

Installing libSBML on Debian begins the same way as on Ubuntu. First follow the instructions in this post.

After compiling and installing, libsbml on Ubuntu should be working.

In Debian, if you try to import libsbml, you get the following error:
File "", line 1, in
File "/usr/local/lib/python2.7/dist-packages/libsbml/", line 27, in
_libsbml = swig_import_helper()
File "/usr/local/lib/python2.7/dist-packages/libsbml/", line 23, in swig_import_helper
_mod = imp.load_module('_libsbml', fp, pathname, description)
ImportError: cannot open shared object file: No such file or directory

To get it working you have to set PYTHONPATH variable:
In commandline:
export PYTHONPATH=/usr/local/lib/python2.7/dist-packages/libsbml

It is also possible to modify environment variable from within python code:
import sys

You can get and set environment variables via os.environ:
import os
os.environ['PYTHONPATH'] = '/usr/local/lib/python2.7/dist-packages/libsbml'

But since your interpreter already runs, this will have no effect.