Skip to content

requirements.txt uses invalid version specifier ~> for Jinja2 (should be ~=)

The requirements.txt file contains the following line: Jinja2~>3.1.4 This results in an installation error when running: pip3 install -r requirements.txt Error message: ERROR: Invalid requirement: 'Jinja2~>3.1.4' The ~> operator is not valid in Python's pip. It should be replaced with the correct PEP 440-compatible operator ~= for compatible version specification.

Suggested fix:

Change the line in requirements.txt to: Jinja2~=3.1.4 This will allow pip to install the dependency correctly. Please let me know if you want me to fix this and create a pull request.