pip install mysql-python fails with EnvironmentError: mysql_config not found

后端 未结 21 2558
广开言路
广开言路 2020-11-22 15:58

This is the error I get

(mysite)zjm1126@zjm1126-G41MT-S2:~/zjm_test/mysite$ pip install mysql-python
Downloading/unpacking mysql-python
  Do         


        
21条回答
  •  不要未来只要你来
    2020-11-22 16:05

    Your sudo path does not know about your local path... go into superuser mode, add the path, and install it from there.

    sudo su
    export PATH=$PATH:/usr/local/mysql/bin/
    pip install mysql-python
    exit
    

    And you're up and running on OSX. Now you have an updated global python.

提交回复
热议问题