Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Python Flask - how to know which version of Jinja is used?

As stated here, the included template does NOT have access to variables defined in templates; though, with Jinja 2.1, it does.

So, my question is how to know if my installed Jinja is 2.1 version or not.

p.s.

I'm using Ubuntu EC2 machine from AWS.

enter image description here

like image 954
Nam G VU Avatar asked Sep 02 '15 05:09

Nam G VU


1 Answers

Type "pip freeze" or pip list to get a listing of all your python packages (including Jinja) with their version.

If you are using virtual environment, activate it first for the correct listing.

Of course pip is a prerequisite, so install "pip" if you already don't have it.

enter image description here

like image 84
Mensur Avatar answered Nov 22 '22 05:11

Mensur