To Solve ImportError: cannot import name 'Markup' from 'jinja2' Error You need to Use Flask==2.0.3 and Jinja2==3.1.1 to work fine. So Just run this command: pip install Flask==2.0.3 and pip install Jinja2==3.1.1 Now, your error will be solved.