尝试在 macOS High Sierra 上安装 MySQL ODBC 连接器时安装失败

Installation failed trying to install MySQL ODBC connector on macOS High Sierra

我正在尝试在我的 macOS High Sierra 机器上安装 this mysql odbc connector,但出现此错误:

我尝试使用 installer 安装它,希望获得有关错误原因的信息:

➜  ~ sudo installer -pkg Desktop/mysql-connector-odbc-5.3.9-macos10.12-x86-64bit.pkg -target / -verbose
installer: Package name is MySQL Connector/Odbc 5.3.9
installer: Installing at base path /
installer: Preparing for installation….....
installer: Preparing the disk….....
installer: Preparing MySQL Connector/Odbc 5.3.9….....
installer: Waiting for other installations to complete….....
installer: Configuring the installation….....
installer:
#
installer: Validating packages….....
#
installer: The install failed (The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.)

但这无济于事。关于如何调试它和安装连接器,您有什么建议吗?谢谢。

我刚注意到这个: 在这个页面上:https://dev.mysql.com/doc/connector-odbc/en/connector-odbc-installation-binary-osx.html

安装 iODBC (http://www.iodbc.org/dataspace/doc/iodbc/wiki/iodbcWiki/Downloads) 后,它能够安装连接器。

我知道我正在恢复一个旧线程,但刚刚有了这个确切的 problem/issue,并且没有解决 iodbc 安装问题,我想我 post 的解决方案适用于我。使用命令行...打开终端并 运行...

pip install mysql-connector-python

pip install mysql-connector