In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
The main purpose of this article is to talk about the solutions to the problems in Mysql-python installation under Mac OS 10.12. You can look up the relevant professional terms on the Internet or find some related books to supplement them. We will not dabble here, so let's go straight to the topic. I hope this article on the solution to the problems in Mysql-python installation under Mac OS 10.12 can bring you some practical help.
When building a django environment under MAC, an error was found when installing mysql-python using pip:
EnvironmentError: mysql_config not foun
After looking at the materials on the Internet, the solutions are as follows:
1. Download MySQL-Python (download from Baidu on the Internet, 1.2.4 I use)
2. Decompress. The mysql_config.path changes in setup_posix.py are as follows:
Mysql_config.path = "/ usr/local/mysql-5.7.18-macos10.12-x86_64/bin/mysql_config"
3. Remove the # before mysql_config.path in site.cfg, and change the content as follows:
Mysql_config = / usr/local/mysql-5.7.18-macos10.12-x86_64/bin/mysql_config
4. Use python setup.py install in the terminal
Note: mysql-5.7.18-macos10.12-x86_64/bin/mysql_config is the path where mysql is installed, please change it according to the situation.
Mac OS 10.12 Mysql-python installation solutions to tell you here, for other related issues you want to know can continue to pay attention to our industry information. Our section will capture some industry news and professional knowledge to share with you every day.
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.