Gordon Sadler wrote: > I'd just like to comment on this. I installed python2.1 some time ago in > /usr/local. However this leads to problems. You have to modify some of > the code (eg PYTHONPATH IIRC) due to using prefix=/usr/local.
Which code is "the code"? The code distributed with Python works fine when installed in /usr/local. > If you do not modify the code, all of your installed python > modules/packages (in prefix=/usr) will not be found by > /usr/local/bin/python. Which modules are you talking about? If you have pure Python modules you can make them available to Python 2.1 by copying the source files to /usr/local/lib/python2.1/site-packages and running compileall.py on them. Extension modules have to be recomplied for 2.1. Its easy if the extensions use distutils: $ python2.1 setup.py build $ su $ python2.1 setup.py install > I don't think I ever got it quite right, perhaps a simple > export PYTHONPATH=/usr/local/lib/python{2,2.1}:/usr/lib/python1.5 Bad idea. The stuff in /usr/lib/python1.5 is for Python 1.5. It might by chance work with 2.0 or 2.1 but don't count on it. Neil