The rapidest way to install treelib is using the package management tools like easy_install or pip with command

$ sudo easy_install -U treelib

or the setup script

$ sudo python install

Note: With the package management tools, the hosted version may be falling behind current development branch on Github. If you encounter some problems, try the freshest version on Github or open issues to let me know your problem.