简体   繁体   English

对于完整的应用程序,在 Python 中使用 DAO 引擎(访问)的最简单方法是什么?

[英]What is the easiest way to use DAO Engine (Access) in Python for a complete application?

I am writing a complete application intended to be compiled to.exe (via Py2EXE).我正在编写一个完整的应用程序,旨在编译为.exe(通过 Py2EXE)。 I would love to use the DAO object for working with an Access database.我很想使用 DAO object 来处理 Access 数据库。 I would like to have as little dependencies as possible (for the user - no office install, etc).我希望尽可能少的依赖(对于用户 - 没有办公室安装等)。 Most of the sources I have reviewed claim that the bitness of the Engine/Driver/Office Installation, must all align.我审查过的大多数消息来源都声称引擎/驱动程序/办公室安装的位数必须全部对齐。 This confuses me as to what the user will require on their machine if i compile my working code.如果我编译我的工作代码,这让我对用户在他们的机器上需要什么感到困惑。

Will they just need Access Run-time for the bitness of the engine I develop the app in?他们是否只需要 Access Run-time 来满足我开发应用程序的引擎的需要?

Thank you谢谢

I wouldn't recommend Acess with Python.我不推荐使用 Python 的 Acess。
Python and Access are two completely different "worlds", Python does have the necessary drivers to "speak" to Access but is not a good match especially when it has built in support for SQLite and i reckon far better support for other Database engines. Python 和 Access 是两个完全不同的“世界”,Python 确实有必要的驱动程序来与 Access “对话”,但并不是一个很好的匹配,尤其是当它内置了对 Z497757A9C5B2EC17DED65610 和其他数据库引擎的更好支持时。
I am an Access expert and i do Python but i wouldn't mix them unless its for convenience like using the report engine of Access.我是 Access 专家,我做 Python 但我不会混合它们,除非为了方便起见,比如使用 Access 的报告引擎。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM