----------------------[Installation of the MySQLdb module for python under Windows]--------- ------------
1. Check whether the MySQLdb module is installed. You can enter:
at the DOS command line >>python
>>import MySQLdb
If no error is reported, it means it has been installed, otherwise the following error will be reported:
File "E: /python_test/SaFETY/connect_Mysql.py", LINE 2, in & LT; Module & GT #No module named MySQLdb #MySQLdb is not installed
2. Installation;
1. Download MySQLdb: (Recommended link)
The above is completed! ~
The above is the detailed content of Install MySQLdb module in Python environment. For more information, please follow other related articles on the PHP Chinese website!