首页 → Linux教程
背景:
阅读新闻
Cygwin 下安装Python MySQLdb
[日期:2015-04-18]来源:Linux社区作者:Linux[字体:]
Cygwin 下安装Python MySQLdb
1) cygwin 更新运行 cygwin/setup-x86_64.exe
a 输入mysql,选择下面的包安装:
libmysqlclient-devellibmysqlclient18
libmysqld-devel
b 输入gcc,安装相应的包
2) setuptools$ wget $ tar zxvf setuptools-0.6c11.tar.gz$ cd setuptools-0.6c11$ python setup.py build$ python setup.py install
3) MySQL-python-1.2.3$ wget $ tar zxvf MySQL-python-1.2.3.tar.gz$ cd MySQL-python-1.2.3
$ vi site.cfg
————————–[options]# embedded: link against the embedded server library# threadsafe: use the threadsafe client# static: link against a static library (probably required for embedded)
embedded = Falsethreadsafe = Truestatic = False
# The path to mysql_config.# Only use this if mysql_config is not on your PATH, or you have some weird# setup that requires it.####mysql_config = /usr/local/bin/mysql_configmysql_config = /bin/mysql_config
# The Windows registry key for MySQL.# This has to be set for Windows builds to work.# Only change this if you have a different version.####registry_key = SOFTWARE\MySQL AB\MySQL Server 5.0————————–
$ python setup.py build
$ python setup.py install
本文永久更新链接地址:
0
RHEL6从源码安装Python及其他软件包
使用vi文本编辑器及Linux复制粘贴小技巧
相关资讯 Cygwin
图片资讯
本文评论 查看全部评论 (0)
评论声明
最新资讯
本周热门
Linux公社简介 – 广告服务 – 网站地图 – 帮助信息 – 联系我们本站(LinuxIDC)所刊载文章不代表同意其说法或描述,,仅为提供更多信息,也不构成任何建议。Copyright © 2006-2015 Linux公社 All rights reserved 沪ICP备15008072号-1号
不畏不惧,不言不弃,冲破风雨的阻隔,黎明就在前方!