On Microsoft Windows systems, you can download Connector/Python as a Zip archive from http://dev.mysql.com/downloads/connector/python/.
Make sure that the Python executable is available in the Windows
%PATH% setting. For more information about
installation and configuration of Python on Windows, see the
Python on Windows in the Python documentation.
To install Connector/Python from the
download the latest version and follow these steps:
To use a Zip archive, unpack it in the intended installation
directory (for example,
WinZip or another tool that can read
Start a console window (or a DOS window) and change location to the folder where you unpacked the Connector/Python Zip archive:
Inside the Connector/Python folder, perform the installation using this command:
python setup.py install
On Windows, Connector/Python is installed in the default location
X.Y is the Python version you
used to install the connector.
If you are not sure where Connector/Python was installed, do the following to determine the location:
python>>> from distutils.sysconfig import get_python_lib >>> print get_python_lib() # Python v2.x >>> print(get_python_lib()) # Python v3.x