Ubuntu ° ² × ° mysql-python
1. Ê × ~ä~~~è · ¨ ubuntu ü Ü ü Â Ä µ. x.í 14. X £ ********************************************************** £.
Î Á áë ° ² â «Æ ð û cp/etc/apt/source. list/etc/apt/source. list. bak
When «Ï  à µäúè Ý µ 'µ½/etc/apt/source. list
Deb http://mirrors.163.com/ubuntu/ trusty main restricted universe multiverse
Deb http://mirrors.163.com/ubuntu/ trusty-security main restricted universe multiverse
Deb http://mirrors.163.com/ubuntu/ trusty-updates main restricted universe multiverse
Deb http://mirrors.163.com/ubuntu/ trusty-proposed main restricted universe multiverse
Deb http://mirrors.163.com/ubuntu/ trusty-backports main restricted universe multiverse
The deb-src http://mirrors.163.com/ubuntu/ trusty main restricted universe multiverse
Deb-src http://mirrors.163.com/ubuntu/ trusty-security main restricted universe multiverse
Deb-src http://mirrors.163.com/ubuntu/ trusty-updates main restricted universe multiverse
The deb-src http://mirrors.163.com/ubuntu/ trusty-proposed main restricted universe multiverse
The deb-src http://mirrors.163.com/ubuntu/ trusty-backports main restricted universe multiverse
2. sudo apt-get update
3. sudo apt-get install mysql-python
· ¢ Ï ö± ríá £°
Sh: mysql_config: not found
Traceback (most recent call last ):
File "setup. py", line 15, in <module>
Metadata, options = get_config ()
File "/home/zhxia/apps/source/MySQL-python-1.2.3/setup_posix.py", line 43, in get_config
Libs = mysql_config ("libs_r ")
File "/home/zhxia/apps/source/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
4. please refer to the following examples for more information ¡£.
~Úíø É Ï ² é vä½ â ö ö½? libmysqld-dev? libmysqlclient? -dev £ ;*******************************************************
5. ~× ~~~» ~ööø ~~~µäpython-dev ~» ° ~~~~~~~~~~~~~~~~~~~~~~~~~%%%%%%%%%%%%%%%%%%%%%%^ unzip sudo apt-get install python-dev <strong · Strong "http://www.bkjia.com/kf/ware/vc/" target = "_ blank" class = "keylink"> vcD4KPHA + encrypt/decrypt + ICAgxua8o9bV09qz9s/wwcujuw.vcd4kpha + pgltzybzcm9 "http://www.2cto.com/uploadfile/Collfiles/20141111/20141111091626101.png" alt = "">