Installation of mysqldb module in python2.6 in Windows

Source: Internet
Author: User

(1l-install mysql-python-1.22.win-py2.6.exe (compiled, many of them need to be compiled by themselves)

(22-install setuptools-0.6c11.win32-py.2.6.exe

(3) Two DLL files (libguide40.dll and libmmd. dll) are missing, which are included in the uploaded resources and downloaded and placed in the python installation directory.Python26 \ Lib \ Site-packages

(4)Deprecationwarning occurs when Python connects to MySQL:

locate _ init _ in python26 \ Lib \ Site-packages \ mysqldb __. py file in the file
"_ init _", comment out:
from sets import immutableset
class dbapiset (immutableset):
added:
class dbapiset (frozenset ):

Find converters. PY comment out from
Sets Import baseset, set. Then, set the values of rows 45th and 129 to set.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.