Search code examples
flaskversionjinja2

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


Solution

  • 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