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
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.
sudo apt-get install python-flask
It seems that the werkzeug exception module required by flask is not installed. I installed it using pip and there were no dependency problems.
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
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.