Spec-Zone .ru
спецификации, руководства, описания, API

21.6.3.1. Installing Connector/Python from a Binary Distribution

Installers in native package formats are available for Unix and Unix-like systems, and for Windows.

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

Installing Connector/Python on Microsoft Windows

Note

Connector/Python requires python.exe to be in the system's PATH. While installing the Python distribution on your system, either enable Add python.exe to Path or manually add it yourself. The Connector/Python MSI will fail to install if it cannot locate python.exe.

Download and install Python for Windows from http://python.org/download/.

Windows users can use the Windows MSI Installer (.msi file). 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.

This MSI is downloadable at http://dev.mysql.com/downloads/connector/python/. Choose the Connector/Python version appropriate for the Python version that is installed on your system.

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

Installing Connector/Python on Linux Using RPM Packages

A Linux RPM package is provided as a file with an .rpm suffix, denoted here as PACKAGE.rpm. To install a given RPM package, 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 about this feature, see Section 2.1.4, "Verifying Package Integrity Using MD5 Checksums or GnuPG".

Installing Connector/Python on Linux Using Debian Packages

Oracle provides Debian packages for installation on Debian or Debian-like Linux systems. A Debian package is provided as a file with an .deb suffix, denoted here as PACKAGE.deb. To install a given Debian package, use this command:

shell> dpkg -i PACKAGE.deb