Jinja requires at least Python 2.3 to work correctly.
You can install the most recent Jinja version using easy_install:
sudo easy_install Jinja
This will install a Jinja egg in your Python installation's site-packages directory.
- Download the most recent tarball from the download page
- Unpack the tarball
- sudo python setup.py install
Note that the last command will automatically download and install setuptools if you don't already have it installed. This requires a working internet connection.
This will install Jinja into your Python installation's site-packages directory.
- Install Subversion
- svn co http://trac.pocoo.org/repos/jinja/trunk jinja
- cd jinja
- ln -s jinja /usr/lib/python2.X/site-packages
As an alternative to steps 4 you can also do python setup.py develop which will install the package via setuptools in development mode.
sudo easy_install Jinja==dev
This will install a Jinja egg containing the latest Subversion trunk code in your Python installation's site-packages directory. Every time the command is run, the sources are updated from Subversion.