CentOS under PIP installation Mysql_python

Source: Internet
Author: User

Today, when using PIP to install Mysql_python, there are some problems that are now recorded.

1. error when executing pip install Mysql-python
Running setup.py egg_info for package Mysql-python Sh:mysql_config:command not found Traceback (most recent CA ll last): File ' <string> ', line +, in <module> file "/tmp/pip-build/mysql-python/setup.py", Lin          E, in <module> metadata, options = Get_config () File ' setup_posix.py ', line +, in Get_config Libs = Mysql_config ("Libs_r") File "setup_posix.py", line, in Mysql_config raise EnvironmentError      ("%s not found"% (Mysql_config.path,)) Environmenterror:mysql_config not found complete output from command python setup.py egg_info:sh:mysql_config  : Command not found Traceback (most recent): File ' <string> ', line +, in <module> file "/tmp/pip-build/mysql-python/setup.py", line +, in <module> metadata, options = Get_config () File "set up_posix.py ", line +, in Get_config libs = Mysql_config (" Libs_r ") File" setup_posix.py ", 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/mysql-python Storing complete log in/root/.pip/pip.log

Workaround:yum install Mysql-devel

2. Still error when performing pip install Mysql-python installation

Error:command ' gcc ' failed with exit status 1

Workaround:yum install gcc python-devel

CentOS under PIP installation Mysql_python

Related Article

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.