Python 运行烧瓶容器时,pycharm分析没有输出

Python 运行烧瓶容器时,pycharm分析没有输出,python,pycharm,Python,Pycharm,运行PyCharm 4.5.3构建#141.1899专业版并获得许可。我使用profiler命令运行Flask应用程序,配置类似于: python app.py 这看起来像: def create_app(): app = Flask(__name__, static_folder='static') app.register_blueprint( consumer_v1.bp, url_prefix='/consumer/v1') return app app = crea

运行PyCharm 4.5.3构建#141.1899专业版并获得许可。我使用profiler命令运行Flask应用程序,配置类似于:

python app.py
这看起来像:

def create_app():
app = Flask(__name__, static_folder='static')
app.register_blueprint(
    consumer_v1.bp,
    url_prefix='/consumer/v1')
return app

app = create_app()

if __name__ == '__main__':
    app.run(debug=True, host='0.0.0.0', port=5001)
当我转到“运行->配置文件应用程序”时,我在控制台上看到以下内容:

   /Users/james/.virtualenvs/trustmile-api/bin/python   /Applications/PyCharm.app/Contents/helpers/profiler/run_profiler.py 127.0.0.1 49537 /Users/james/Documents/workspace/trustmile-backend/trustmile/api_stubs/api_stubs/__init__.py
Starting cProfile profiler

2015-09-01 07:00:25,717 INFO  [werkzeug][MainThread]  * Running on http://0.0.0.0:5001/ (Press CTRL+C to quit)
2015-09-01 07:00:25,723 INFO  [werkzeug][MainThread]  * Restarting with stat
2015-09-01 07:00:32,801 INFO  [werkzeug][Thread-1] 127.0.0.1 - - [01/Sep/2015 07:00:32] "POST /consumer/v1/account/password HTTP/1.1" 403 -
Snapshot saved to /Users/XXXX/Library/Caches/PyCharm40/snapshots/trustmile-backend5.pstat
Process finished with exit code 0
但是,UI中没有显示任何内容,如下所示


非常感谢您的帮助。

为了解决这个问题,我只需安装了python分析器而不是默认的python分析器

pip安装yappi


我希望这对你也有用

用了雅皮,效果很好。与该框架一起工作。也为我解决了它,您应该将其作为答案发布并接受它。