MySQL Connector/Python Developer Guide  /  Connector/Python Installation

Chapter 4 Connector/Python Installation

Connector/Python runs on any platform where Python is installed. Python comes preinstalled on most Unix and Unix-like systems, such as Linux, macOS, and FreeBSD. On Microsoft Windows, a Python installer is available at the Python Download website or via the Microsoft app store. If necessary, download and install Python for Windows before attempting to install Connector/Python.

Note

Connector/Python requires python in the system's PATH.

Installing Connector/Python with pip

Using pip is the recommended way to install Connector/Python and it functions on all standard systems, including Windows, and installing the Python language also installs pip.

# Installation
$> pip install mysql-connector-python

# Upgrade
$> pip install mysql-connector-python --upgrade

# Optional, installs the X DevAPI interface
$> pip install mysqlx-connector-python