ModuleNotFoundError: No module named ‘werkzeug.contrib‘ 解决方法
发现当前安装的Werkzeug版本为1.0.1,于是翻阅werkzeug的官方文档
首先发现了这段话:
The contrib modules are deprecated and will either be moved into werkzeug core or removed completely in version 1.0. Some modules that already issued deprecation warnings have been removed. Be sure to run or test your code with python -W default::DeprecationWarning to catch any deprecated code you’re using. (#4)
意思是: werkzeug.contrib已经在1.0版本被移除了!
pip3 uninstall Werkzeug # will uninstall earlier version
pip3 install Werkzeug==0.11.15 -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
转载自:https://juejin.cn/post/7133785987141861383