Có lỗi khi tải mã lên Github, ai có thể hướng dẫn!

Tác giả:Dream2020, Tạo: 2021-04-04 11:45:56, Cập nhật:

Những sai lầm sau đây: 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_init_.py, dòng 17, trong từ.recaptcha nhập * File D:\Program Files (x86)\Python\Python38\lib\site-packages\flask_wtf\recaptcha_init_.py, dòng 2, trong từ.fields import * File D:\Program Files (x86)\Python\Python38\lib\site-packages\flask_wtf\recaptcha\fields.py, dòng 3, trong từ. nhập widget File D:\Program Files (x86)\Python\Python38\lib\site-packages\flask_wtf\recaptcha\widgets.py, dòng 5, trong từ Werkzeug import url_encode ImportError: không thể nhập tên url_encode từ werkzeug (D:\Program Files (x86)\Python\Python38\lib\site-packages\werkzeug_init_.py)

Cố gắng thay thếwerkzeug với phiên bản 0.15.2 và 0.16.0 không hiệu quả.


Thêm nữa

williamfuTôi đã thay thếwerkzeug-0.16.0 và không báo lỗi này, nhưng báo lỗi File "/usr/lib/python2.7/site-packages/flask_sqlalchemy/__init__.py", line 861, in apply_driver_hacks info.database = os.path.join ((app.root_path, info.database) AttributeError: can't set attribute, có phải có vấn đề với mã không?

Cỏ nhỏThay phiên bản Python

Cỏ nhỏThay phiên bản Python