Comments (2)
当我使用教程中的pip install flask-sqlalchemy==2.5.1时,发生了一些问题,当我下载完成flask-sqlalchemy==2.5.1时,其中几个依赖也同时被安装,如下图所示
当我试图使用教程中的Pythonn Shell时,发生了如下报错:
根据我查找资料之后,stack overflow上的这篇文章提示我需要使用flask-sqlalchemy 3.0.x或者更高版本。
推测原因为flask-sqlalchemy-2.5.1和其他的自动下载的一些依赖包会版本不符合,导致依赖包所需要的__all__
属性缺失,希望作者可以更新,而非限定死flask-sqlalchemy的版本。
from flask-tutorial.
感谢反馈。如果同时固定 SQLAlchemy < 2.0 版本应该就没问题了,即:
pip install flask-sqlalchemy==2.5.1 sqlalchemy==1.4.47
已更新。
from flask-tutorial.
Related Issues (20)
- 第五章,可能的小问题 HOT 1
- 第10章第108页__init__.py 导入模块问题 HOT 1
- 视图函数传参和使用flask.request获取参数的区别? HOT 4
- 错别字勘误 HOT 1
- 第9章代码报错 HOT 1
- Drop GitBook integration
- Update quote tips to MkDocs admonitions
- Generate PDF file for 3.0 version HOT 2
- Update chapter 2 for Flask 2.2 version
- 第三章的index.html代码有误,未及时更新 HOT 1
- 第九章小错误 HOT 1
- Update Netlify build image HOT 1
- 连接数据库一定要打开数据库的tcpip和browser服务啊啊 HOT 2
- 第9章测试章节代码没有按预期执行
- 第二章中:调试模式的命令问题:flask run --debug HOT 1
- The link to the repository is not working HOT 1
- 第5章 数据库出现问题
- 关于最后一章部署上线的一个小遗漏 HOT 2
- 关于第一章Git使用
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flask-tutorial.