Pycharm无法调试Python Flask项目

qacovj5a  于 2023-10-20  发布在  PyCharm
关注(0)|答案(1)|浏览(225)

我在Pycharm中有一个简单的基于Flask的项目。我正试图通过右键单击并选择调试选项来调试这个。但不断得到下面的错误:

Connected to pydev debugger (build 232.9559.58)
 * Serving Flask app 'app'
 * Debug mode: on
WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
 * Running on all addresses (0.0.0.0)
 * Running on http://127.0.0.1:8000
 * Running on http://192.168.0.29:8000
Press CTRL+C to quit
 * Restarting with stat
C:\Python311\python.exe: can't open file 'C:\\Program': [Errno 2] No such file or directory

Process finished with exit code 2

我无法理解为什么以及它在'C:\\Program'中寻找什么。我能够运行文件完美的罚款,只有在调试问题。接下来我可以尝试什么?

相关问题