MySQL Connector/Python Developer Guide
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.
Connector/Python requires python in the system's
PATH
.
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