Yes, please "apt-get remove python2.5-dev". But leave "python-sympy" (old version) to see if the new version installs when installing "Integral"/"Derivative"/"Limit".