To install the Python MySQLdb module, we need to install the current version of Python, which is 3.7
We need to find the location of the Python script where the pip command is located. First, open cmd and reach the location of the Python script.
To open cmd, press "Windows R" and type cmd.
This is a snapshot -
Now get to where the script is.
We will now install the "MySQLdb" module. The steps are shown in the screenshot below.
The above is the detailed content of How to install the Python MySQLdb module using pip?. For more information, please follow other related articles on the PHP Chinese website!