Flask-Uploads Module

坚强是说给别人听的谎言 提交于 2021-02-11 15:31:26

问题


I am using Python 3.8.2. I am trying to create a project by using the Flask-Uploads module.

When I try to run it, I get error:

"no module named flask.ext.uploads"

I then tried to install this module again with upper case letters like Flask-Uploads, but I still have the same problem.

I was wondering if there's a problem with the latest Python version I am using?


回答1:


This looks like you have a too old Flask-Uploads version.

Flask-Uploads has not seen an update on PyPi since 2016.

I created a fork of the library, in order to fix some errors and continue development:

https://pypi.org/project/Flask-Reuploaded/

You can use the new library as a drop-in replacement, that means, you do not have to change a single line of code.

Also, you have to import from flask_uploads instead of the obsolete flask.ext.uploads.



来源:https://stackoverflow.com/questions/60872429/flask-uploads-module

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!