1.2 Installing

Warning: The Linux binaries are compiled for the relatively recent glibc-2.3, which means that they will not work on older systems! Note that it is not more difficult to install from the source than from binaries - basically, just do python setup.py install in both cases. Also note that at least some versions of Psyco have been successfully used on other PC Unixes like FreeBSD.

To install from the binaries, be sure to download the version of Psyco that corresponds to your Python version. Binary released are at http://sourceforge.net/project/showfiles.php?group_id=41036. Four pre-compiled versions are currently distributed:

File name  Python versions  Well-tested with 
psyco-x.y-OS-2.1 2.1 or any 2.1.x 2.1.3
psyco-x.y-OS-2.2.0-1 2.2 older than 2.2.2 2.2.1
psyco-x.y-OS-2.2.2 2.2.2 and up 2.2.2 and 2.2.3
psyco-x.y-OS-2.3 2.3 and up 2.3 and 2.3.3

x.y is the Psyco version number, and OS is the operating system this version has been compiled for.

The binaries contain a subdirectory named psyco which is a Python package (which you can check by looking for the __init__.py file it contains). Just drop this directory into your site-package directory. In other words, you need a directory .../python2.x/lib/site-packages/psyco/ which contains the files __init__.py, core.py, and so on.

Alternatively, run the top-level installation script setup.py as follows:

python setup.py install