Depending on your operating system, Pyrite might be available as a ready-to-install binary package. At the time of this writing, the following pre-built packages are known to be available:
Pyrite is included in the main distribution, section "otherosfs", starting with release 2.1 (slink). You can install it (and related packages) from a Debian CD-ROM or archive site using dselect.