Hitting this error when deploying a Python Flask website:
ModuleNotFoundError: No module named 'werkzeug.posixemulation'
I found this Chinese link that says to install werkzeug.
So I did a pip install werkzeug
locally and then a pip freeze
and it says the version was
Werkzeug==2.0.1
I added Werkzeug==2.0.1 to the requirements, however I still get the error when spinning up the Flask website.
The issue has been reported: https://github.com/pallets/secure-cookie/issues/12
How can I fix this?