I've gotten an error when I downloaded the code on Github, which god can guide me!

Author: Dream2020, Created: 2021-04-04 11:45:56, Updated:

The error is as follows: Traceback (most recent call last): File C:/Users/peng/PycharmProjects/fmz_extend_api_demo-master/app.py, line 22, in from flask_wtf import FlaskForm File D:\Program Files (x86) \Python\Python38\lib\site-packages\flask_wtf_ This is a list of all the different ways Python is credited in the database.init_.py”, line 17, in <module> from .recaptcha import * File “D:\Program Files (x86)\Python\Python38\lib\site-packages\flask_wtf\recaptcha_init_.py”, line 2, in <module> from .fields import * File “D:\Program Files (x86)\Python\Python38\lib\site-packages\flask_wtf\recaptcha\fields.py”, line 3, in <module> from . import widgets File “D:\Program Files (x86)\Python\Python38\lib\site-packages\flask_wtf\recaptcha\widgets.py”, line 5, in <module> from werkzeug import url_encode ImportError: cannot import name ‘url_encode’ from ‘werkzeug’ (D:\Program Files (x86)\Python\Python38\lib\site-packages\werkzeug_init_.py)

Trying to replace the version number of Werkzeug with 0.15.2 and 0.16.0 is not possible.


More

williamfuI switched to Werkzeug-0.16.0 and did not report this error, but reported File "/usr/lib/python2.7/site-packages/flask_sqlalchemy/__init__.py", line 861, in apply_driver_hacks If you want to add a link to the database, you can do so by clicking here. AttributeError: can't set attribute, is there a problem with the code?

The grassChange the version of Python

The grassChange the version of Python