mysql-python on mac os 10.9.1

前端 未结 2 1732
感情败类
感情败类 2020-12-18 13:08

I can\'t seem to be able to install mysql-python on 10.9.1. I suspect it has something to do with latest command line tools update but I\'m no expert:

Runnin         


        
相关标签:
2条回答
  • 2020-12-18 14:02

    Fixed it by running:

    export CFLAGS=-Qunused-arguments export CPPFLAGS=-Qunused-arguments

    before `pip install...```

    0 讨论(0)
  • 2020-12-18 14:11

    I just like to improve your answer, which helped me, too:

    On MacShell do the following:

    sudo su
    export CFLAGS=-Qunused-arguments
    export CPPFLAGS=-Qunused-arguments
    pip install MySQL-python
    

    Otherwise these Options won't be used.

    Cheers!

    0 讨论(0)
提交回复
热议问题