开发者

import error in python [duplicate]

开发者 https://www.devze.com 2023-01-03 10:39 出处:网络
This question already has answers here: Closed 10 years ago. Possible Duplicate: MySQL for Python in Windows
This question already has answers here: Closed 10 years ago.

Possible Duplicate:

MySQL for Python in Windows

I can't import the MySQLdb package in Python. How to install the msqldb package an开发者_运维知识库d where to place it in Python? Then when I compile the code there is an error like no module named MySQLdb. Python version is 2.6.4 then MySQLdb version is 1.2.3c1. Pls clarify this.


On Windows you use binary version installer (contains already compiled MySQLdb):

http://www.lfd.uci.edu/~gohlke/pythonlibs/#mysql-python

http://www.codegood.com/archives/4

0

精彩评论

暂无评论...
验证码 换一张
取 消