Scrib 2
Scrib 2
Installation Instructions
To install Python-mysql-connector module, one must have Python and PIP, preinstalled on
their system. To check if our system already contains Python, go through the following
instructions:
Open the Command line(search for cmd in the Run dialog(Windows + R). Now run the
following command:
python --version
If Python is already installed, it will generate a message with the Python version available.
If Python is not present, go through How to install Python on Windows and Linux? and
follow the instructions provided.
Once Python and PIP are installed, we can proceed with installing the MySQL
Connector package for Python.
For Windows
mysql-connector method can be installed on Windows with the use of following
command:
pip install mysql-connector-python
For Linux
mysql-connector method can be installed on Linux with the use of following
command:
pip3 install mysql-connector
Comment
More info
Campus Training Program
Next Article
Connect MySQL database using MySQL-Connector Python
Similar Reads