1

我正在运行可用的演示脚本

https://gist.github.com/Tefnet/5430309

尽管拥有所有库,但我收到以下错误

烧瓶 sqlalchemy 验证 SQL

File demo.py in line 2 , in <module>
    from eve.io.sqlalchemy import SQLAlchemy, Validator
ImportError no module named sqlalchemy

不知道为什么要给?即使我已经安装了 EVE、SQLAlchemy、flask

4

2 回答 2

1

The SQLAlchemy branch is a work in progress. It has evolved quite a bit from the fork linked by codegeek and now is almost on par (feature-wise) with v0.4dev.

So if you want to play around with it, make sure to pull that branch. Also, one thing it's not been done yet is update requirements.txt and setup.py, so you will want to pip install sqlalchemy on your own.

You can find a rather complete Eve-SQL log by checking out this very long lived ticket.

于 2014-05-23T06:39:48.057 回答
0

eve.io.sqlalchemy通过查看eve的官方源代码是没有的。您正在查看的 Gist 是 eve 的一个分支,但尚未正式引入更改。

在此处查看提交更改

于 2014-05-22T19:57:06.533 回答