Cannot install flask

Absolute Beginner:
Just installed Python 3.11 on Windows 10.
Now: pip install flask gives ‘Syntax error’ in Python and ‘unknown’ command on command line.
What can I do?

You’d type it from the Windows command line prompt.

On Windows, it’s recommended to use the Python Launcher py instead:

py -m pip install flask

Worked like a charm. Thank you so much …