如何在Digital Ocean上安装python 2.7 mysql
我尝试在Digital Ocean上的droplet中使用以下命令安装mysql:如何在Digital Ocean上安装python 2.7 mysql,python,mysql,python-2.7,digital-ocean,Python,Mysql,Python 2.7,Digital Ocean,我尝试在Digital Ocean上的droplet中使用以下命令安装mysql: pip install MySQL-python 但它不工作,并显示以下信息: Collecting MySQL-python Using cached MySQL-python-1.2.5.zip Complete output from command python setup.py egg_info: sh: 1: mysql_config: not found Traceba
pip install MySQL-python
但它不工作,并显示以下信息:
Collecting MySQL-python
Using cached MySQL-python-1.2.5.zip
Complete output from command python setup.py egg_info:
sh: 1: mysql_config: not found
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-kjiS0F/MySQL-python/setup.py", line 17, in <module>
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-kjiS0F/MySQL-python/
收集MySQL-python
使用缓存的MySQL-python-1.2.5.zip
从命令python setup.py egg_info完成输出:
sh:1:mysql\u配置:未找到
回溯(最近一次呼叫最后一次):
文件“”,第1行,在
文件“/tmp/pip-build-kjiS0F/MySQL-python/setup.py”,第17行,在
元数据,options=get_config()
文件“setup_posix.py”,第43行,在get_config中
libs=mysql\u config(“libs\u r”)
mysql\u config中的文件“setup\u posix.py”,第25行
raise环境错误(“%s未找到”%)(mysql\u config.path,)
环境错误:未找到mysql\u配置
----------------------------------------
命令“python setup.py egg_info”在/tmp/pip-build-kjiS0F/MySQL-python中失败,错误代码为1/
区域设置可能有问题。 试试这个:
$ export LC_ALL=C