macos - MAC下配置mysql-python 遇见的问题
大家讲道理
大家讲道理 2017-04-17 13:16:11
0
2
466

MBP上安装了XMAPP 准备再装一个mysql-python 搭建python web开发环境,下载了mysql-python文件,网上搜了各种方法,修改了文件,然后键入 sudo python setup.py install 后,python里面键入import MySQLdb 出现以下问题:

大家讲道理
大家讲道理

光阴似箭催人老,日月如移越少年。

reply all(2)
刘奇

mysql-python needs to be installed locally mysql. The xmapp and mysql in the mysql-python you installed may not have found the correct configuration.

If it is not a production environment, use mysql-connector instead. This is the mysqlofficially recommended driver and is purely pythonimplemented. No need to configure local mysql locally. The usage is the same as mysqldb.

刘奇

mysql-python is just a module of python language using mysql.
Before using mysql-python, you must first install the mysql for mac version.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template