Understanding how to use open ai codex on python

I recently got access to codex and had a lot of fun with it in JavaScript sandbox but when it came to trying to install the files to create a flask program for python or just trying to install the API at all I was and still am completely stumped I’m sure I’m doing something fundamentally wrong like using the wrong program but I’ve installed python 3.1 and tried to run the commands in the documentation portion on how to install API for flask and also tried to run them in command prompt I’ve also tried to run the code the appears when you click code in playground and I’ve also downloaded the zip file containing libraries. Can someone tell me what it is that I am doing wrong?

Trying to help from limited knowledge. Python is on 3.10.5.

If you are trying to convert JavaScript to Python from Flask I would suggest reaching out to a community like https://www.reddit.com/r/flask/

I am not trying to pass the buck, I just don’t know much about that kind of conversion unfortunately. Wish you the best.