Linked Questions

Popular Questions

I'm building a small flask app and I had a few errors I wanted to try and fix with the PyCharm debugger, but when I try to run the debugger the following pops up:

*Restarting with stat

C:\Users\nare2\AppData\Local\Programs\Python\Python310\python.exe: can't open file 'C:\Program': [Errno 2] No such file or directory

Here's the relevant (last) lines of my code:

>     if __name__ == "__main__":
>         with app.app_context():
>             db.create_all()
>             app.run(debug=True, port=5001)

Related Questions