我在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'
中寻找什么。我能够运行文件完美的罚款,只有在调试问题。接下来我可以尝试什么?
1条答案
按热度按时间8hhllhi21#
这似乎是Pycharm中的一个bug。在JetBrains错误跟踪器中也提出了多个问题。
您可以遵循此注解(或此注解)以获得临时解决方案。