From a duplicate bug report: instead of installing python-dev, following also works around the problem:
sudo ln -s /usr/lib/libpython2.5.so.1 /usr/lib/libpython2.5.so
From a duplicate bug report: instead of installing python-dev, following also works around the problem:
sudo ln -s /usr/lib/ libpython2. 5.so.1 /usr/lib/ libpython2. 5.so