Framework Error
Got an error creating the Flask development server: werkzeug.exceptions.RuntimeError: Werkzeug is missing the build-in server: make sure you have the development version of Werkzeug installed. Please upgrade Werkzeug with pip.
What This Error Means
This error occurs when Flask is unable to create the development server due to missing or outdated dependencies. The error is related to Werkzeug, a popular Python library used by Flask for server creation.
Why It Happens
This error typically occurs when you're using an outdated version of Flask or Werkzeug. The issue can also arise if you're trying to use a feature that's specific to the development version of Werkzeug but have the regular version installed.
How to Fix It
- 1To resolve this issue, you need to upgrade Werkzeug to the development version using pip. You can do this by running the following command in your terminal:
- 2pip install --upgrade Werkzeug[development]
- 3Alternatively, you can install Flask with the development version of Werkzeug by running:
- 4pip install Flask[development]
Example Code Solution
from flask import Flask
app = Flask(__name__)from flask import Flask
from flask.cli import FlaskGroup
app = Flask(__name__)
cli = FlaskGroup(app)Fix for Got an error creating the Flask development server: werkzeug.exceptions.RuntimeError: Werkzeug is missing the build-in server: make sure you have the development version of Werkzeug installed. Please upgrade Werkzeug with pip.
Browse Related Clusters
Related PYTHON Errors
Related PYTHON Blog Articles
Have a different error? Get an instant explanation.
Explain Another Error