pip install mysql-python fails with EnvironmentError: mysql_config not found
2016-03-28 11:24
811 查看
phtyon安装mysql扩展的时候报错:
解决方法:
先安装ubuntu的mysql相关开发包
然后再安装pythonmysql扩展即可
pip
install mysql-python fails with EnvironmentError: mysql_config not found
解决方法:先安装ubuntu的mysql相关开发包
sudo apt-get install libmysqlclient-dev
然后再安装pythonmysql扩展即可
相关文章推荐
- python 2进制,8进制,10进制,16进制转换
- Python 读取网页内容 乱码问题
- Python常用的爬虫技巧总结
- Python对数据库操作
- python 小模块
- Numpy库进阶教程(一)求解线性方程组
- 从Python中看约定俗成的一些编程习惯
- python 实现SVM向量机代码
- Python学习路径和个人增值
- 利用metaclass实现python的aop
- [python]<BUG>解决UnicodeDecodeError: ‘ascii’ codec can’t decode byte 0xe5 in position 108: ordinal not
- [python]遍历字典dict的几种方法
- [python]条件运算符 x = 条件 and a or b
- python的ujson与simplejson
- Python脚本运行出现语法错误:IndentationError: unindent does not match any outer indentation level
- 《Python数据分析基础教程:Numpy学习指南》- 速记 - 第五章
- 【Python】Django RestFramework资料
- python操作数据库
- 【Python】Django CSRF问题
- Python垃圾回收机制