AttributeError:模块'sqlalchemy'没有属性'Binary'
AttributeError: module 'sqlalchemy' has no attribute 'Binary'尝试在 Python 中使用 SQLAlchemy 库时出现错误。
回答
sqlalchemy.Binarysqlalchemy.LargeBinary在 0.6中重命名并弃用,最终在1.4 版中删除。使用库版本 < 1.4 或升级代码库。
- Actually, `Binary` was "renamed" to `LargeBinary` in version 0.6 — about 11 years ago — with the old name retained (emitting a deprecation warning) until version 1.4 finally removed it.
THE END
二维码