Skip to content

【MAC系统】关于Python 安装MySQL-python出错解决办法  #4

@Maybon

Description

@Maybon

通过pip安装mysql-python时出现 EnvironmentError: mysql_config not found

解决办法:
1,若MAC自带brew,直接在终端执行
brew install mysql-connector-c
pip install MySQL-python
2,若MAC没有自带brew,便先安装brew
安装方法:在终端中执行
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
安装成功后,继续执行步骤1就ok了

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions