Pycharm2024.1 flask项目Dubug启动报错如下:
C:\Users\Administrator\Desktop\flask-api\.venv\Scripts\python.exe -X pycache_prefix=C:\Users\Administrator\AppData\Local\JetBrains\PyCharm2024.1\cpython-cache "E:/SoftSetuplocation/PyCharm 2024.1/plugins/python/helpers/pydev/pydevd.py" --multiprocess --qt-support=auto --client 127.0.0.1 --port 51183 --file C:\Users\Administrator\Desktop\flask-api\app.py
已连接到 pydev 调试器(内部版本号 241.14494.241) * 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 http://127.0.0.1:5000
Press CTRL+C to quit
* Restarting with stat
C:\Program Files\Python312\python.exe: can't open file 'E:\\SoftSetuplocation\\PyCharm': [Errno 2] No such file or directory
进程已结束,退出代码为 2
flask运行/调试配置如下:
我这里用的是PyCha