In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-06-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)05/31 Report--
The main content of this article is to explain "using pip to install mysql_python error EnvironmentError under CentOS: how to solve mysql_config not found", interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Next, let the editor take you to learn "install mysql_python with pip under CentOS and report an error EnvironmentError: how to solve mysql_config not found"!
The error message is as follows:
Running setup.py egg_info for package mysql-python
Sh: mysql_config: command not found
Traceback (most recent call last):
File "", line 16, in
File "/ tmp/pip-build/mysql-python/setup.py", line 18, 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
Complete output from command python setup.py egg_info:
Sh: mysql_config: command not found
Traceback (most recent call last):
File "", line 16, in
File "/ tmp/pip-build/mysql-python/setup.py", line 18, 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/mysql-python
Storing complete log in / root/.pip/pip.log
Solution method
Normal operation after installing mysql-devel
Yum install mysql-devel
If you install mysql_python manually
Find mysql_config.path in setup_posix.py
Change to mysql_config.path=/xxx/xxx (mysql installation path / bin/mysql_config)
At this point, I believe that everyone has a deeper understanding of "installing mysql_python error EnvironmentError with pip under CentOS: how to solve mysql_config not found". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.