This topic created in 4831 days ago, the information mentioned may be changed or developed.
engine=sqlalchemy.create_engine("sqlite:///tutorial.db",echo=True)
这个tutorial.db建到哪了?是在内存里面,当前路径下没找到
4 replies • 1970-01-01 08:00:00 +08:00
 |
|
你要首先确定这个在当前目录下,不然你运行会报错的。不是他创建,而是你创建好它使用。
|
 |
|
是建立到内存里面,只有session commit后才会生成sqlite库文件。 库文件会生成在当前的工作目录。
|
 |
|
看下根目录和用户主目录
|
 |
|
/tutorial.db 应该是在根目录下面吧。如果没有权限,应该是失败才对。
|