Pycharm无法调试Python Flask项目

问题描述 投票:0回答:1

我在 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'
中寻找什么。我能够完美地运行该文件,并且仅在调试时出现问题。接下来我可以尝试什么?

python flask debugging pycharm
1个回答
© www.soinside.com 2019 - 2024. All rights reserved.