pip install MySQL-python error
2013-12-10 17:32
197 查看
python virtualenv 使用 pip install MySQL-python error
errors:
sh: mysql_config: not found
Traceback (most recent call last):
File "setup.py", line 15, in <module>
metadata, options = get_config()
File "/web/MySQL-python-1.2.3/setup_posix.py", line 43, in get_config
libs = mysql_config("libs_r")
File "/web/MySQL-python-1.2.3/setup_posix.py", line 24, in mysql_config
raise EnvironmentError("%s not found" % (mysql_config.path,))
EnvironmentError: mysql_config not found
原因:执行命令 apt-get install mysql-server-5.5 安装mysql时,mysql-config是在不同的 模块,并不在mysql里面。
解决方法:安装 libmysqlclient-dev
以Ubuntu为例:
sudo apt-get install
libmysqlclient-dev
errors:
sh: mysql_config: not found
Traceback (most recent call last):
File "setup.py", line 15, in <module>
metadata, options = get_config()
File "/web/MySQL-python-1.2.3/setup_posix.py", line 43, in get_config
libs = mysql_config("libs_r")
File "/web/MySQL-python-1.2.3/setup_posix.py", line 24, in mysql_config
raise EnvironmentError("%s not found" % (mysql_config.path,))
EnvironmentError: mysql_config not found
原因:执行命令 apt-get install mysql-server-5.5 安装mysql时,mysql-config是在不同的 模块,并不在mysql里面。
解决方法:安装 libmysqlclient-dev
以Ubuntu为例:
sudo apt-get install
libmysqlclient-dev
相关文章推荐
- pip install mysql-python fails with EnvironmentError: mysql_config not found
- pip install mysql-python fails with EnvironmentError: mysql_config not found
- CentOS7上 pip install MySQL-python 安装失败(error: command 'gcc' failed with exit status 1)的解决办法
- pip install MySQL-python error in virtualenv on mac
- python pip install 失败原因之ProxyError('Cannot connect to proxy.
- python 2.6 pip install mysql-python 报错
- How do you install mysql-connector-python (development version) through pip?
- easy_install MySQL-python gcc error
- python pip install报错error: Unable to find vcvarsall.bat
- pip install mysql-python
- Python PIP Install throws TypeError: unsupported operand type(s) for -=: 'Retry' and 'int'
- pip install Error - ReadTimeoutError: HTTPSConnectionPool(host='pypi.python.org', port=443): Read
- 缺少MySQLdb 模块,pip install MySQL-python 异常
- Python2.7-pip install MySQL-python失败的问题
- pip install mysql-connector-python安装时报错不满足requirement
- 解决Python下pip install MySQL-python失败的问题
- macosx 10.11 python pip install 出现错误OSError: [Errno 1] Operation not permitted:
- 记录解决Python下pip install MySQL-python失败的问题
- centos pip install MySql-python