Home  >  Q&A  >  body text

python - ubuntu flask问题

这问题是怎么回事,安装了flask了。

PHP中文网PHP中文网2741 days ago1002

reply all(4)I'll reply

  • 天蓬老师

    天蓬老师2017-04-17 17:40:20

    sudo apt-get install python-flask

    reply
    0
  • 天蓬老师

    天蓬老师2017-04-17 17:40:20

    It seems that the werkzeug exception module required by flask is not installed. I installed it using pip and there were no dependency problems.

    reply
    0
  • ringa_lee

    ringa_lee2017-04-17 17:40:20

    werkzeug is a very important part of flask. It is usually installed when flask is installed. If you are installing flask with pip now, try sudo apt-get install python-flask

    reply
    0
  • 迷茫

    迷茫2017-04-17 17:40:20

    There is a flask folder in the hello.py file directory. When importing the package, python will first look for it in the execution environment directory and then disappear.

    reply
    0
  • Cancelreply