Ubuntu ° ² × ° mysql-python

Source: Internet
Author: User

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 = "">

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.