当我尝试从烧瓶上传导入 UploadSet、configure_uploads、IMAGES 时收到错误消息。
我还没有做任何其他步骤
只是我保存文件我收到了这个错误
Traceback (most recent call last):
File "C:\Users\ahmed\Desktop\login\main.py", line 14, in <module>
from flask_uploads import UploadSet,configure_uploads, IMAGES
File "C:\Users\ahmed\AppData\Local\Programs\Python\Python39\lib\site-packages\flask_uploads.py", line 26, in <module>
from werkzeug import secure_filename, FileStorage
ImportError: cannot import name 'secure_filename' from 'werkzeug' (C:\Users\ahmed\AppData\Local\Programs\Python\Python39\lib\site-packages\werkzeug\__init__.py)