How to install pyodbc 64-bit?

后端 未结 2 1519
甜味超标
甜味超标 2020-12-18 00:49

I have Python 2.7, MySQL 5.5, MySQL ODBC Connector 5.1, and pyodbc all installed on my computer, which is running Windows 7, 64-bit...

Only problem is that everythi

相关标签:
2条回答
  • 2020-12-18 01:19

    I spend a lot time to find out why pyodbc can't see 64 bit ODBC driver because I confused between bitness of Windows. So I will make it clear that

    Python 32 bit + pyodbc 32 bit (default when install from pip) will read driver from %windir%\SysWOW64\odbcad32.exe

    Python 64 bit + pyodbc 64 bit (you have to download from here) will read driver from %windir%\System32\odbcad32.exe

    0 讨论(0)
  • 2020-12-18 01:22

    There is a list of "unofficial" Python modules here

    PyODBC is one of those that have been compiled for 64bits.

    Also, make sure you're using the correct version of the ODBC Administrator. The default will be for 64bit drivers, but you can use 32bit drivers with %windir%\SysWOW64\odbcad32.exe

    0 讨论(0)
提交回复
热议问题