大橙子网站建设,新征程启航

为企业提供网站建设、域名注册、服务器等服务

解决Ubuntupip安装mysql-python包出错的问题-创新互联

问题描述如下,报没有找到mysql_config环境变量

创新互联公司是一个技术型专业网站制作公司,致力于为广大企业、创业者打造切实有效的PC站、WAP站、APP站点等企业网站。无论是企业宣传的全网营销推广、致力于营销的电商网站、内容资讯分享的各行业网站或其他类型网站,我们都从网站前期定位分析策划、技术架构,到网站界面设计、创意表现、站点架构搭建以及后续访问监控、维护、网站托管运营反馈建议等提供整套服务。
$ pip install mysql-python

Collecting MySQL-python==1.2.5 (from -r requirement (line 16))
 Downloading MySQL-python-1.2.5.zip (108kB)
100% |################################| 112kB 56kB/s 
Complete output from command python setup.py egg_info:
sh: mysql_config: command not found
Traceback (most recent call last):
 File "", line 1, in 
 File "/tmp/pip-build-HVEeJz/MySQL-python/setup.py", line 17, in 
 metadata, options = get_config()
 File "setup_posix.py", line 43, in get_config
 libs = mysql_config("libs_r")
 File "setup_posix.py", line 25, in mysql_config
 raise EnvironmentError("%s not found" % (mysql_config.path,))
EnvironmentError: mysql_config not found

----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-HVEeJz/MySQL-python/

本文名称:解决Ubuntupip安装mysql-python包出错的问题-创新互联
本文路径:http://dzwzjz.com/article/epecj.html
在线咨询
服务热线
服务热线:028-86922220
TOP