LiuBingBlogs

MacOS 安装MysqlDB 问题解决方案( 解决 IndexError: string index out of range)

pip install MySQL-python时报错如下:

Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/wk/541xl0m91gj7562sn0ddpjg9k8mh7p/T/pip-install-FF6W2Y/MySQL-python/

解决方案:brew install mysql
brew unlink mysql
brew install mysql-connector-c
sed -i -e \'s/libs="$libs -l "/libs="$libs -lmysqlclient -lssl -lcrypto"/g\' /usr/local/bin/mysql_config
pip install MySQL-python
brew unlink mysql-connector-c
brew link --overwrite mysql
尊重原创 原文地址:https://blog.csdn.net/eri_feng/article/details/81224106 

分类:

技术点:

相关文章:

  • 2021-12-17
  • 2021-06-08
  • 2021-12-23
  • 2021-07-29
  • 2021-06-07
  • 2021-06-03
  • 2021-08-21
  • 2021-12-12
猜你喜欢
  • 2021-06-07
  • 2021-11-06
  • 2021-08-21
  • 2021-11-19
  • 2021-04-22
  • 2021-11-20
  • 2021-12-29
相关资源
相似解决方案