Tom
Tom

Reputation: 4069

Jinja install for python

I don't use Python regularly, but now I have to. I should run a python sctipt that need Jinja. Python2.7 is installed on my Windows XP and works, but I can't find how to install inja package.

Would anybody be so kind to write me a step by step install guide for it?

I have to run this only once to create some outputs for me, so I don't want tp ddep dive into it, so pls. forgive me if it is a very beginner level question.

Thx

Upvotes: 15

Views: 73206

Answers (3)

rtrigo
rtrigo

Reputation: 529

I needed to install jinja2 as a dependency for Ansible and didn't want to use pip or pip3. Installing python-jinja2 package did the trick:

apt install python-jinja2

Upvotes: 1

Asher
Asher

Reputation: 2774

For updates (git path) see: http://jinja.pocoo.org/docs/dev/intro/

git clone git://github.com/mitsuhiko/jinja2.git
cd jinja2
sudo
cp -r jinja2 /usr/lib/python2.X/site-packages
exit

Note: The jinja2 subdirectory in jinja2 already includeds all the files packaged as a python library and is ready for your /usr/lib...

Upvotes: 1

wezzy
wezzy

Reputation: 5935

have a look at this. You can use setuptools or pip to install jinja. Just enter those command into a DOS prompt

easy_install Jinja2

or

pip install Jinja2

You should have easy_install.exe bundled with your python on windows

Hope this helps

Upvotes: 18

Related Questions