4.2 Installing Connector/Python from a Binary Distribution

Connector/Python installers in native package formats are available for Windows and for Unix and Unix-like systems:

You may need root or administrator privileges to perform the installation operation.

Installing Connector/Python on Microsoft Windows Using an MSI Package

Windows users can use the Connector/Python Windows MSI Installer (.msi file), available from the Connector/Python download site (see Section 4.1, “Obtaining Connector/Python”). Choose the installer appropriate for the version of Python installed on your system.

To use the MSI Installer, launch it and follow the prompts in the screens it presents to install Connector/Python in the location of your choosing.

Alternatively, to run the installer from the command line, use this command in a console window, where VER and PYVER are the Connector/Python and Python version numbers, respectively in the distribution file name:

shell> msiexec /i mysql-connector-python-VER-pyPYVER.msi

Subsequent executions of the Connector/Python using the MSI installer permit you to either repair or remove the existing Connector/Python installation.

Installing Connector/Python on Linux Using the MySQL Yum Repository

For EL6 or EL7-based platforms and Fedora 19 or 20, you can install Connector/Python using the MySQL Yum repository (see Installing Additional MySQL Products and Components with Yum). You must have the MySQL Yum repository on your system's repository list (for details, see Adding the MySQL Yum Repository). Make sure that your Yum repository is up-to-date using this command:

shell> sudo yum update mysql-community-release

Then install Connector/Python as follows:

shell> sudo yum install mysql-connector-python

Installing Connector/Python on Linux Using an RPM Package

Connector/Python Linux RPM packages (.rpm files) are available from the Connector/Python download site (see Section 4.1, “Obtaining Connector/Python”).

To install a Connector/Python RPM package (denoted here as PACKAGE.rpm), use this command:

shell> rpm -i PACKAGE.rpm

RPM provides a feature to verify the integrity and authenticity of packages before installing them. To learn more, see Verifying Package Integrity Using MD5 Checksums or GnuPG.

Installing Connector/Python on Linux Using a Debian Package

Connector/Python Debian packages (.deb files) for installation on Debian or Debian-like Linux systems are available from the Connector/Python download site (see Section 4.1, “Obtaining Connector/Python”).

To install a Connector/Python Debian package (denoted here as PACKAGE.deb), use this command:

shell> dpkg -i PACKAGE.deb

Installing Connector/Python on OS X Using a Disk Image

Connector/Python OS X disk images (.dmg files) are available from the Connector/Python download site (see Section 4.1, “Obtaining Connector/Python”).

Download the .dmg file and install Connector/Python by opening it and double clicking the resulting .pkg file.