python安装MySQLdb模块-(ubuntu,windows)
2016-03-25 10:18
633 查看
python没有自带mysql的模块,需要自己安装
ubuntu:
sudo apt-get安装:直接运行
Windows:
上某全家桶网站,下载MySQL-python的exe文件手动安装
PS:两种系统上,pip安装都会报错(搞不懂):
“Command python setup.py egg_info failed with error code 1 in /tmp/pip-build-u5oLrC/mysql-python”
ubuntu:
sudo apt-get安装:直接运行
sudo apt-get install python-mysqldb
Windows:
上某全家桶网站,下载MySQL-python的exe文件手动安装
PS:两种系统上,pip安装都会报错(搞不懂):
pip install mysql-python
“Command python setup.py egg_info failed with error code 1 in /tmp/pip-build-u5oLrC/mysql-python”
相关文章推荐
- python函数里面的装饰器和闭包的理解
- Python中的sorted函数以及operator.itemgetter函数
- python2.7:IOError: [Errno 2] No such file or directory:
- python 如何重载模块,用一个简单的例子来解释
- PHP + PYTHON 多任务多线程,后台运行,计划任务-实现方法
- Python信号处理模块signal
- python中字典(dict)常见用法
- python2.7:模块安装4种方法
- Python基础教程
- python写个图片爬虫
- python中元组(tuple)用法总结
- python
- 转载一篇python类的博文
- Python入门 之 dict
- Python-pip 安装失败问题解决
- 初始Python类
- Python基础教程之正则表达式基本语法以及re模块
- 用Python实现斐波那契(Fibonacci)函数
- python Django批量导入不重复数据
- python Django批量导入数据