AttributeError: 'Request' object has no attribute 'is_xhr' 报错的解决办法
可能的原因是因为Flask 的版本与 Werkzeug 的组件版本不兼容,也就是出现一新一旧的问题
例如可能使用的flask是没有超过1.0版本的,那么这个时候Werkzeug用的是超过1.0版本的
解决方案:
降低Werkzeug版本为0.16版本如下:
pip uninstall Werkzeug
pip install Werkzeug==0.16.1