【问题标题】:How to Read .mdb file using python 64 bit?如何使用 python 64 位读取 .mdb 文件?
【发布时间】:2020-06-16 10:04:54
【问题描述】:

我在 pandasaccess 中遇到 filenot found 错误

MDB 工具也不起作用

mdb-tables : 术语“mdb-tables”未被识别为 cmdlet、函数、脚本文件或可操作的名称 程序。检查名称的拼写,或者如果包含路径,请验证路径是否正确并重试。 在行:1 字符:1 + mdb-tables .\Classes\Test-results.mdb

Pyodbc 仅适用于 win 32 位

这里有类似的How to read from a 32 bit .mdb with 64 bit python and odbc driver

但仍然没有答案

【问题讨论】:

    标签: python ms-access pyodbc mdbtools


    【解决方案1】:

    pandas_access 是 MDBTools 的精简包装器,MDBTools 实际上只适用于非 Windows 平台。

    如果您想在 Windows 下使用 pandas 在 64 位 Python 中处理 .mdb 文件,那么您需要安装 64 位版本的 Access Database Engine 并使用 SQLAlchemy 的 sqlalchemy-access 方言。

    【讨论】:

    • Thompson 很遗憾,我无法安装 64 位访问数据库,因为我没有管理权限。感谢您的投入,它很有用
    • 您的 IT 部门有责任为您提供执行工作所需的工具。
    • 我已将我的 python 降级为 32 位,现在我可以使用 pyodc 模块读取 .mdb 文件。谢谢@gord Thompson
    猜你喜欢
    • 2018-07-10
    • 1970-01-01
    • 2015-05-19
    • 1970-01-01
    • 1970-01-01
    • 2022-01-14
    • 1970-01-01
    • 2016-03-03
    • 1970-01-01
    相关资源
    最近更新 更多