“Data source name not found and no default driver specified” with Access ODBC

后端 未结 1 800
情话喂你
情话喂你 2020-11-30 12:00

My Softwares:

  • Python 3.4 -64 bit
  • PyODBC 64 bit
  • MS office package Installed (32 bit)

Problem:

相关标签:
1条回答
  • 2020-11-30 12:30

    Is there some modification that can be done to make it work without installing 32 bit python and 32 bit pyodbc?

    Not really. If you have 32-bit Office installed then you have the 32-bit version of the Access Database Engine (a.k.a. "ACE"), and only 32-bit applications can use it.

    The installer for the 64-bit version of the Access Database Engine will abort if it detects 32-bit Office components. There is a way to force the installer to continue, but that is not recommended because it can apparently break Office.

    Bottom Line: The "bitness" of your application must match the "bitness" of the installed Access Database Engine. So, practically speaking, your options are

    1. Use 32-bit Python and pyodbc, or
    2. replace your 32-bit Office with the 64-bit version.
    0 讨论(0)
提交回复
热议问题