Jinja for python

I do not use Python regularly, but now should. I have to run python sctipt, which needs Jinja. Python2.7 is installed on my Windows XP and it works, but I cannot find how to install the inja package.

Would anyone be so kind as to write me a step-by-step installation guide?

I need to run this only once to create multiple outputs for it, so I don't want dpp dpep to be immersed in it, so pls. Forgive me if this is a very entry-level question.

thanks

+6
source share
2 answers

look at this . You can use setuptools or pip to install jinja. Just enter this command at the DOS prompt

easy_install Jinja2 

or

 pip install Jinja2 

You should have easy_install.exe complete with your python in windows

Hope this helps

+7
source

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 has already included all the files packaged as a python library, and is ready for your / usr / lib ...

0
source

Source: https://habr.com/ru/post/892957/


All Articles