Connect to MS Access in Python

前端 未结 2 1629
北恋
北恋 2021-01-24 21:10

I tried a lot of examples from internet to include a MS Access connection to my python project without sucess

I have my python project in Eclipse with Anaconda, and my c

2条回答
  •  我在风中等你
    2021-01-24 21:17

    You probably have 32-bit Access (Office) and 64-bit Python. As you know, 32-bit and 64-bit are completely incompatible. You need to install 32-bit Python, or upgrade Access (Office) to 64-bit, and then it will work. Succinctly put, you cannot connect (at application level) a 64-bit Python.exe to a 32-bit MS Access ODBC driver (odbcad32.exe) since data is stored and processed differently between the types. However with backwards compatibility, it is advised to work in lowest common denominator as a 64-bit OS can run 32-bit applications and same level programs can "talk" to each other. Please take a look at the URL below for all details.

    https://datatofish.com/how-to-connect-python-to-ms-access-database-using-pyodbc/

提交回复
热议问题