0

I am trying to run a simple flask application with python3.5 but getting below error.

SyntaxError: future feature annotations is not defined

i have installed the latest version of flask using below command.

RUN pip3 --trusted-host=pypi.python.org --trusted-host=pypi.org --trusted-host=files.pythonhosted.org install Flask gunicorn wheel

Please suggest how to fix this issue.

2
  • 2
    You need to upgrade to at least python 3.8 to use the latest flask. You need to either upgrade python or find older versions of the libraries that are compatible with your python version. If you do the later there are potential security vulnerabilities. Commented Sep 19, 2023 at 9:32
  • Thanks. i updated to 3.8 and its works now. Commented Sep 20, 2023 at 4:13

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.